summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Ulbrich <[email protected]>2016-01-22 04:26:55 +0100
committerWolfgang Ulbrich <[email protected]>2016-01-22 04:26:55 +0100
commitb14e1b5201694c68b51fd13545e303afa55b0328 (patch)
treedfde21a5b77bbed322d5049ed06de35ad4258efa
parentff6a32e8002be01e253a61a4abb9b61961252ddd (diff)
downloadcaja-b14e1b5201694c68b51fd13545e303afa55b0328.tar.bz2
caja-b14e1b5201694c68b51fd13545e303afa55b0328.tar.xz
GTK3: fix deprecated GtkStock in libcaja-private
-rw-r--r--libcaja-private/caja-autorun.c6
-rw-r--r--libcaja-private/caja-bookmark.c2
-rw-r--r--libcaja-private/caja-file-conflict-dialog.c2
-rw-r--r--libcaja-private/caja-progress-info.c2
4 files changed, 6 insertions, 6 deletions
diff --git a/libcaja-private/caja-autorun.c b/libcaja-private/caja-autorun.c
index 9409456b..5212813d 100644
--- a/libcaja-private/caja-autorun.c
+++ b/libcaja-private/caja-autorun.c
@@ -510,7 +510,7 @@ caja_autorun_prepare_combo_box (GtkWidget *combo_box,
{
gtk_list_store_append (list_store, &iter);
pixbuf = gtk_icon_theme_load_icon (gtk_icon_theme_get_default (),
- GTK_STOCK_DIALOG_ERROR,
+ "dialog-error",
icon_size,
0,
NULL);
@@ -532,7 +532,7 @@ caja_autorun_prepare_combo_box (GtkWidget *combo_box,
{
gtk_list_store_append (list_store, &iter);
pixbuf = gtk_icon_theme_load_icon (gtk_icon_theme_get_default (),
- GTK_STOCK_DIALOG_QUESTION,
+ "dialog-question",
icon_size,
0,
NULL);
@@ -548,7 +548,7 @@ caja_autorun_prepare_combo_box (GtkWidget *combo_box,
gtk_list_store_append (list_store, &iter);
pixbuf = gtk_icon_theme_load_icon (gtk_icon_theme_get_default (),
- GTK_STOCK_CLOSE,
+ "window-close",
icon_size,
0,
NULL);
diff --git a/libcaja-private/caja-bookmark.c b/libcaja-private/caja-bookmark.c
index 48e26ea3..b80f1ddc 100644
--- a/libcaja-private/caja-bookmark.c
+++ b/libcaja-private/caja-bookmark.c
@@ -481,7 +481,7 @@ caja_bookmark_set_icon_to_default (CajaBookmark *bookmark)
if (caja_bookmark_uri_known_not_to_exist (bookmark))
{
- icon = g_themed_icon_new (GTK_STOCK_DIALOG_WARNING);
+ icon = gtk_image_new_from_icon_name ("dialog-warning", GTK_ICON_SIZE_BUTTON);
emblem = g_emblem_new (icon);
emblemed_icon = g_emblemed_icon_new (folder, emblem);
diff --git a/libcaja-private/caja-file-conflict-dialog.c b/libcaja-private/caja-file-conflict-dialog.c
index 5a17da8f..749fda3f 100644
--- a/libcaja-private/caja-file-conflict-dialog.c
+++ b/libcaja-private/caja-file-conflict-dialog.c
@@ -592,7 +592,7 @@ caja_file_conflict_dialog_init (CajaFileConflictDialog *fcd)
gtk_container_set_border_width (GTK_CONTAINER (hbox), 6);
/* Setup the dialog image */
- widget = gtk_image_new_from_stock (GTK_STOCK_DIALOG_WARNING,
+ widget = gtk_image_new_from_icon_name ("dialog-warning",
GTK_ICON_SIZE_DIALOG);
gtk_box_pack_start (GTK_BOX (hbox), widget, FALSE, FALSE, 0);
#if GTK_CHECK_VERSION (3, 14, 0)
diff --git a/libcaja-private/caja-progress-info.c b/libcaja-private/caja-progress-info.c
index 503a8ac6..613ed3de 100644
--- a/libcaja-private/caja-progress-info.c
+++ b/libcaja-private/caja-progress-info.c
@@ -401,7 +401,7 @@ progress_widget_new (CajaProgressInfo *info)
TRUE,TRUE,
0);
- image = gtk_image_new_from_stock (GTK_STOCK_CANCEL,
+ image = gtk_image_new_from_icon_name ("gtk-cancel",
GTK_ICON_SIZE_BUTTON);
button = gtk_button_new ();
gtk_container_add (GTK_CONTAINER (button), image);