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 /libcaja-private/caja-mime-application-chooser.c | |
parent | 012d9f86e046cfbffd4d2d4e55633d250ec90dd7 (diff) | |
download | caja-e313685f58549d3b98dc42a10b58f830e5b934e9.tar.bz2 caja-e313685f58549d3b98dc42a10b58f830e5b934e9.tar.xz |
avoid deprecated GtkButton:use-stock
Diffstat (limited to 'libcaja-private/caja-mime-application-chooser.c')
-rw-r--r-- | libcaja-private/caja-mime-application-chooser.c | 14 |
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), |