summaryrefslogtreecommitdiff
path: root/src/caja-property-browser.c
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2018-02-23 10:11:08 +0100
committerPablo Barciela <[email protected]>2018-02-23 10:20:25 +0100
commite313685f58549d3b98dc42a10b58f830e5b934e9 (patch)
tree35ca5b7f9b03b636313efd811a7a86eb592182cc /src/caja-property-browser.c
parent012d9f86e046cfbffd4d2d4e55633d250ec90dd7 (diff)
downloadcaja-e313685f58549d3b98dc42a10b58f830e5b934e9.tar.bz2
caja-e313685f58549d3b98dc42a10b58f830e5b934e9.tar.xz
avoid deprecated GtkButton:use-stock
Diffstat (limited to 'src/caja-property-browser.c')
-rw-r--r--src/caja-property-browser.c16
1 files changed, 5 insertions, 11 deletions
diff --git a/src/caja-property-browser.c b/src/caja-property-browser.c
index 1125ed90..5a9e4447 100644
--- a/src/caja-property-browser.c
+++ b/src/caja-property-browser.c
@@ -387,22 +387,16 @@ caja_property_browser_init (CajaPropertyBrowser *property_browser)
gtk_container_add (GTK_CONTAINER (temp_box), property_browser->details->bottom_box);
/* create the "help" button */
- temp_button = GTK_WIDGET (g_object_new (GTK_TYPE_BUTTON,
- "label", "gtk-help",
- "use-stock", TRUE,
- "use-underline", TRUE,
- NULL));
+ temp_button = gtk_button_new_with_mnemonic (_("_Help"));
+ gtk_button_set_image (GTK_BUTTON (temp_button), gtk_image_new_from_icon_name ("help-browser", GTK_ICON_SIZE_BUTTON));
gtk_widget_show (temp_button);
gtk_box_pack_start (GTK_BOX (property_browser->details->bottom_box), temp_button, FALSE, FALSE, 0);
g_signal_connect_object (temp_button, "clicked", G_CALLBACK (help_button_callback), property_browser, 0);
- /* create the "done" button */
- temp_button = GTK_WIDGET (g_object_new (GTK_TYPE_BUTTON,
- "label", "gtk-close",
- "use-stock", TRUE,
- "use-underline", TRUE,
- NULL));
+ /* create the "close" button */
+ temp_button = gtk_button_new_with_mnemonic (_("_Close"));
+ gtk_button_set_image (GTK_BUTTON (temp_button), gtk_image_new_from_icon_name ("window-close", GTK_ICON_SIZE_BUTTON));
gtk_widget_set_can_default (temp_button, TRUE);