summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2018-02-17 02:34:22 +0100
committerPablo Barciela <[email protected]>2018-02-17 02:34:22 +0100
commit257b2363af758bb159e3265596dadc483833475d (patch)
treeb6b840db81d6ef6f48e3ab5f1301ad18aa4eeb0a
parent17b20172c581009a5d972dbb9bc523e7d3e4126d (diff)
downloadmate-control-center-257b2363af758bb159e3265596dadc483833475d.tar.bz2
mate-control-center-257b2363af758bb159e3265596dadc483833475d.tar.xz
theme-thumbnail.c: avoid deprecated GtkButton:use-stock
-rw-r--r--capplets/common/theme-thumbnail.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/capplets/common/theme-thumbnail.c b/capplets/common/theme-thumbnail.c
index 7ecce692..2c1957ce 100644
--- a/capplets/common/theme-thumbnail.c
+++ b/capplets/common/theme-thumbnail.c
@@ -221,11 +221,8 @@ create_meta_theme_pixbuf (ThemeThumbnailData *theme_thumbnail_data)
gtk_container_set_border_width (GTK_CONTAINER (vbox), 6);
gtk_container_add (GTK_CONTAINER (preview), vbox);
- image_button = GTK_WIDGET (g_object_new (GTK_TYPE_BUTTON,
- "label", "gtk-open",
- "use-stock", TRUE,
- "use-underline", TRUE,
- NULL));
+ image_button = gtk_button_new_with_mnemonic (_("_Open"));
+ gtk_button_set_image (GTK_BUTTON (image_button), gtk_image_new_from_icon_name ("document-open", GTK_ICON_SIZE_BUTTON));
gtk_widget_set_halign (image_button, GTK_ALIGN_START);
gtk_widget_set_valign (image_button, GTK_ALIGN_START);
@@ -306,11 +303,8 @@ create_gtk_theme_pixbuf (ThemeThumbnailData *theme_thumbnail_data)
gtk_container_set_border_width (GTK_CONTAINER (box), 6);
gtk_box_pack_start (GTK_BOX (vbox), box, FALSE, FALSE, 0);
- image_button = GTK_WIDGET (g_object_new (GTK_TYPE_BUTTON,
- "label", "gtk-open",
- "use-stock", TRUE,
- "use-underline", TRUE,
- NULL));
+ image_button = gtk_button_new_with_mnemonic (_("_Open"));
+ gtk_button_set_image (GTK_BUTTON (image_button), gtk_image_new_from_icon_name ("document-open", GTK_ICON_SIZE_BUTTON));
gtk_box_pack_start (GTK_BOX (box), image_button, FALSE, FALSE, 0);
checkbox = gtk_check_button_new ();