summaryrefslogtreecommitdiff
path: root/libcaja-private
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 /libcaja-private
parent012d9f86e046cfbffd4d2d4e55633d250ec90dd7 (diff)
downloadcaja-e313685f58549d3b98dc42a10b58f830e5b934e9.tar.bz2
caja-e313685f58549d3b98dc42a10b58f830e5b934e9.tar.xz
avoid deprecated GtkButton:use-stock
Diffstat (limited to 'libcaja-private')
-rw-r--r--libcaja-private/caja-mime-application-chooser.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/libcaja-private/caja-mime-application-chooser.c b/libcaja-private/caja-mime-application-chooser.c
index b36a23c4..5abb9cda 100644
--- a/libcaja-private/caja-mime-application-chooser.c
+++ b/libcaja-private/caja-mime-application-chooser.c
@@ -417,11 +417,8 @@ caja_mime_application_chooser_init (CajaMimeApplicationChooser *chooser)
gtk_box_pack_start (GTK_BOX (chooser), box, FALSE, FALSE, 6);
gtk_widget_show (box);
- button = GTK_WIDGET (g_object_new (GTK_TYPE_BUTTON,
- "label", "gtk-add",
- "use-stock", TRUE,
- "use-underline", TRUE,
- NULL));
+ button = gtk_button_new_with_mnemonic (_("_Add"));
+ gtk_button_set_image (GTK_BUTTON (button), gtk_image_new_from_icon_name ("list-add", GTK_ICON_SIZE_BUTTON));
g_signal_connect (button, "clicked",
G_CALLBACK (add_clicked_cb),
@@ -430,11 +427,8 @@ caja_mime_application_chooser_init (CajaMimeApplicationChooser *chooser)
gtk_widget_show (button);
gtk_container_add (GTK_CONTAINER (box), button);
- button = GTK_WIDGET (g_object_new (GTK_TYPE_BUTTON,
- "label", "gtk-remove",
- "use-stock", TRUE,
- "use-underline", TRUE,
- NULL));
+ button = gtk_button_new_with_mnemonic (_("_Remove"));
+ gtk_button_set_image (GTK_BUTTON (button), gtk_image_new_from_icon_name ("list-remove", GTK_ICON_SIZE_BUTTON));
g_signal_connect (button, "clicked",
G_CALLBACK (remove_clicked_cb),