Skip to content

Commit 61c81eb

Browse files
sc0wraveit65
authored andcommitted
avoid deprecated GtkStock
1 parent 6365649 commit 61c81eb

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

‎src/ui/theme-viewer.c‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,12 @@ dialog_contents (void)
253253
gtk_button_box_set_layout (GTK_BUTTON_BOX (action_area),
254254
GTK_BUTTONBOX_END);
255255

256-
button = gtk_button_new_from_stock (GTK_STOCK_OK);
256+
button = GTK_WIDGET (g_object_new (GTK_TYPE_BUTTON,
257+
"label", "gtk-ok",
258+
"use-stock", TRUE,
259+
"use-underline", TRUE,
260+
NULL));
261+
257262
gtk_box_pack_end (GTK_BOX (action_area),
258263
button,
259264
FALSE, TRUE, 0);

0 commit comments

Comments
 (0)