Skip to content
Permalink
Browse files

theme-thumbnail.c: avoid deprecated GtkButton:use-stock

  • Loading branch information...
sc0w committed Feb 17, 2018
1 parent 17b2017 commit 257b2363af758bb159e3265596dadc483833475d
Showing with 4 additions and 10 deletions.
  1. +4 −10 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 ();

0 comments on commit 257b236

Please sign in to comment.
You can’t perform that action at this time.