diff options
author | Pablo Barciela <[email protected]> | 2018-02-16 01:38:50 +0100 |
---|---|---|
committer | Pablo Barciela <[email protected]> | 2018-02-16 01:38:50 +0100 |
commit | 70d82d3a745651351d1b8d4e315f074bb83fded3 (patch) | |
tree | 020545ea8892fbde0dedc44197ec3300fade757b /src/ui/theme-viewer.c | |
parent | 61c81ebcfc472c6345cb1a3aee4c8aa18ed7e6be (diff) | |
download | marco-70d82d3a745651351d1b8d4e315f074bb83fded3.tar.bz2 marco-70d82d3a745651351d1b8d4e315f074bb83fded3.tar.xz |
avoid deprecated GtkButton:use-stock
Diffstat (limited to 'src/ui/theme-viewer.c')
-rw-r--r-- | src/ui/theme-viewer.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/ui/theme-viewer.c b/src/ui/theme-viewer.c index f4e154f7..e6e4e097 100644 --- a/src/ui/theme-viewer.c +++ b/src/ui/theme-viewer.c @@ -253,11 +253,8 @@ dialog_contents (void) gtk_button_box_set_layout (GTK_BUTTON_BOX (action_area), GTK_BUTTONBOX_END); - button = GTK_WIDGET (g_object_new (GTK_TYPE_BUTTON, - "label", "gtk-ok", - "use-stock", TRUE, - "use-underline", TRUE, - NULL)); + button = gtk_button_new_with_mnemonic (_("_OK")); + gtk_button_set_image (GTK_BUTTON (button), gtk_image_new_from_icon_name ("gtk-ok", GTK_ICON_SIZE_BUTTON)); gtk_box_pack_end (GTK_BOX (action_area), button, |