summaryrefslogtreecommitdiff
path: root/gsearchtool/src/gsearchtool-support.c
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2018-02-14 04:03:57 +0100
committerraveit65 <[email protected]>2018-02-14 09:26:08 +0100
commit70a60111e00fe834e1303d87265c1aa65cb1f086 (patch)
tree88faea28f15ac67a81e05724b068f772a8ab8057 /gsearchtool/src/gsearchtool-support.c
parentdab6502bbced250a11781b0239300af3d787b4a4 (diff)
downloadmate-utils-70a60111e00fe834e1303d87265c1aa65cb1f086.tar.bz2
mate-utils-70a60111e00fe834e1303d87265c1aa65cb1f086.tar.xz
avoid deprecated GtkStock
Diffstat (limited to 'gsearchtool/src/gsearchtool-support.c')
-rw-r--r--gsearchtool/src/gsearchtool-support.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gsearchtool/src/gsearchtool-support.c b/gsearchtool/src/gsearchtool-support.c
index 5804e378..61f456ae 100644
--- a/gsearchtool/src/gsearchtool-support.c
+++ b/gsearchtool/src/gsearchtool-support.c
@@ -1117,8 +1117,8 @@ gsearchtool_get_unique_filename (const gchar * path,
}
GtkWidget *
-gsearchtool_button_new_with_stock_icon (const gchar * string,
- const gchar * stock_id)
+gsearchtool_button_new_with_icon (const gchar * string,
+ const gchar * icon_name)
{
GtkWidget * button;
GtkWidget * hbox;
@@ -1128,7 +1128,7 @@ gsearchtool_button_new_with_stock_icon (const gchar * string,
button = gtk_button_new ();
label = gtk_label_new_with_mnemonic (string);
gtk_label_set_mnemonic_widget (GTK_LABEL (label), GTK_WIDGET (button));
- image = gtk_image_new_from_stock (stock_id, GTK_ICON_SIZE_BUTTON);
+ image = gtk_image_new_from_icon_name (icon_name, GTK_ICON_SIZE_BUTTON);
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 2);
gtk_box_pack_start (GTK_BOX (hbox), image, FALSE, FALSE, 0);
gtk_box_pack_end (GTK_BOX (hbox), label, FALSE, FALSE, 0);