Skip to content

Commit

Permalink
avoid deprecated GtkStock
Browse files Browse the repository at this point in the history
  • Loading branch information
sc0w authored and raveit65 committed Feb 15, 2018
1 parent 6365649 commit 61c81eb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/ui/theme-viewer.c
Expand Up @@ -253,7 +253,12 @@ dialog_contents (void)
gtk_button_box_set_layout (GTK_BUTTON_BOX (action_area),
GTK_BUTTONBOX_END);

button = gtk_button_new_from_stock (GTK_STOCK_OK);
button = GTK_WIDGET (g_object_new (GTK_TYPE_BUTTON,
"label", "gtk-ok",
"use-stock", TRUE,
"use-underline", TRUE,
NULL));

gtk_box_pack_end (GTK_BOX (action_area),
button,
FALSE, TRUE, 0);
Expand Down

0 comments on commit 61c81eb

Please sign in to comment.