diff options
author | Pablo Barciela <[email protected]> | 2018-02-23 10:11:08 +0100 |
---|---|---|
committer | Pablo Barciela <[email protected]> | 2018-02-23 10:20:25 +0100 |
commit | e313685f58549d3b98dc42a10b58f830e5b934e9 (patch) | |
tree | 35ca5b7f9b03b636313efd811a7a86eb592182cc /src | |
parent | 012d9f86e046cfbffd4d2d4e55633d250ec90dd7 (diff) | |
download | caja-e313685f58549d3b98dc42a10b58f830e5b934e9.tar.bz2 caja-e313685f58549d3b98dc42a10b58f830e5b934e9.tar.xz |
avoid deprecated GtkButton:use-stock
Diffstat (limited to 'src')
-rw-r--r-- | src/caja-property-browser.c | 16 |
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); |