summaryrefslogtreecommitdiff
path: root/libcaja-private/caja-mime-application-chooser.c
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2018-01-27 22:04:52 +0100
committerraveit65 <[email protected]>2018-02-09 14:14:02 +0100
commitbf3da8eea7dad06618c84375adbb4952c74f6987 (patch)
treedd95b9a475316ba68cecd035129790eea6a2910a /libcaja-private/caja-mime-application-chooser.c
parentd8579ead4a13e66b03d2f17f3240f724008cc555 (diff)
downloadcaja-bf3da8eea7dad06618c84375adbb4952c74f6987.tar.bz2
caja-bf3da8eea7dad06618c84375adbb4952c74f6987.tar.xz
avoid deprecated GtkStock
Diffstat (limited to 'libcaja-private/caja-mime-application-chooser.c')
-rw-r--r--libcaja-private/caja-mime-application-chooser.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/libcaja-private/caja-mime-application-chooser.c b/libcaja-private/caja-mime-application-chooser.c
index 4bd322ac..b36a23c4 100644
--- a/libcaja-private/caja-mime-application-chooser.c
+++ b/libcaja-private/caja-mime-application-chooser.c
@@ -417,7 +417,12 @@ caja_mime_application_chooser_init (CajaMimeApplicationChooser *chooser)
gtk_box_pack_start (GTK_BOX (chooser), box, FALSE, FALSE, 6);
gtk_widget_show (box);
- button = gtk_button_new_from_stock (GTK_STOCK_ADD);
+ button = GTK_WIDGET (g_object_new (GTK_TYPE_BUTTON,
+ "label", "gtk-add",
+ "use-stock", TRUE,
+ "use-underline", TRUE,
+ NULL));
+
g_signal_connect (button, "clicked",
G_CALLBACK (add_clicked_cb),
chooser);
@@ -425,7 +430,12 @@ caja_mime_application_chooser_init (CajaMimeApplicationChooser *chooser)
gtk_widget_show (button);
gtk_container_add (GTK_CONTAINER (box), button);
- button = gtk_button_new_from_stock (GTK_STOCK_REMOVE);
+ button = GTK_WIDGET (g_object_new (GTK_TYPE_BUTTON,
+ "label", "gtk-remove",
+ "use-stock", TRUE,
+ "use-underline", TRUE,
+ NULL));
+
g_signal_connect (button, "clicked",
G_CALLBACK (remove_clicked_cb),
chooser);