Skip to content

Commit 70d82d3

Browse files
committed
avoid deprecated GtkButton:use-stock
1 parent 61c81eb commit 70d82d3

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

‎src/ui/theme-viewer.c‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -253,11 +253,8 @@ dialog_contents (void)
253253
gtk_button_box_set_layout (GTK_BUTTON_BOX (action_area),
254254
GTK_BUTTONBOX_END);
255255

256-
button = GTK_WIDGET (g_object_new (GTK_TYPE_BUTTON,
257-
"label", "gtk-ok",
258-
"use-stock", TRUE,
259-
"use-underline", TRUE,
260-
NULL));
256+
button = gtk_button_new_with_mnemonic (_("_OK"));
257+
gtk_button_set_image (GTK_BUTTON (button), gtk_image_new_from_icon_name ("gtk-ok", GTK_ICON_SIZE_BUTTON));
261258

262259
gtk_box_pack_end (GTK_BOX (action_area),
263260
button,

0 commit comments

Comments
 (0)