summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2017-04-22 17:37:13 +0200
committerraveit65 <[email protected]>2017-04-22 17:37:38 +0200
commitb119e91fe61ccc243857c6a70a3ef1029cab7c6b (patch)
tree0e0d63e23b559f3230e9e93fbbb913eafb4e8d27
parentfbc385974ae55e96c5b8080e4217e9c523f59af5 (diff)
downloadeom-b119e91fe61ccc243857c6a70a3ef1029cab7c6b.tar.bz2
eom-b119e91fe61ccc243857c6a70a3ef1029cab7c6b.tar.xz
Fix a few GtkStock deprecations
-rw-r--r--plugins/reload/eom-reload-plugin.c2
-rw-r--r--src/eom-sidebar.c2
-rw-r--r--src/eom-window.c4
3 files changed, 4 insertions, 4 deletions
diff --git a/plugins/reload/eom-reload-plugin.c b/plugins/reload/eom-reload-plugin.c
index 62d2580..397c1c9 100644
--- a/plugins/reload/eom-reload-plugin.c
+++ b/plugins/reload/eom-reload-plugin.c
@@ -41,7 +41,7 @@ static const gchar* const ui_definition = "<ui><menubar name=\"MainMenu\">"
"</popup></ui>";
static const GtkActionEntry action_entries[] = {
- { "EomPluginRunReload", GTK_STOCK_REFRESH, N_("Reload Image"), "R", N_("Reload current image"), G_CALLBACK (reload_cb) }
+ { "EomPluginRunReload", "view-refresh", N_("Reload Image"), "R", N_("Reload current image"), G_CALLBACK (reload_cb) }
};
static void
diff --git a/src/eom-sidebar.c b/src/eom-sidebar.c
index fb71137..197eba8 100644
--- a/src/eom-sidebar.c
+++ b/src/eom-sidebar.c
@@ -429,7 +429,7 @@ eom_sidebar_init (EomSidebar *eom_sidebar)
G_CALLBACK (eom_sidebar_close_clicked_cb),
eom_sidebar);
- image = gtk_image_new_from_stock (GTK_STOCK_CLOSE,
+ image = gtk_image_new_from_icon_name ("window-close",
GTK_ICON_SIZE_MENU);
gtk_container_add (GTK_CONTAINER (close_button), image);
gtk_widget_show (image);
diff --git a/src/eom-window.c b/src/eom-window.c
index 72400d5..417f7a6 100644
--- a/src/eom-window.c
+++ b/src/eom-window.c
@@ -810,7 +810,7 @@ image_file_changed_cb (EomImage *img, EomWindow *window)
GTK_RESPONSE_NO, NULL);
gtk_info_bar_set_message_type (GTK_INFO_BAR (info_bar),
GTK_MESSAGE_QUESTION);
- image = gtk_image_new_from_stock (GTK_STOCK_DIALOG_QUESTION,
+ image = gtk_image_new_from_icon_name ("dialog-question",
GTK_ICON_SIZE_DIALOG);
label = gtk_label_new (NULL);
@@ -2679,7 +2679,7 @@ eom_window_set_wallpaper (EomWindow *window, const gchar *filename, const gchar
gtk_info_bar_set_message_type (GTK_INFO_BAR (info_bar),
GTK_MESSAGE_QUESTION);
- image = gtk_image_new_from_stock (GTK_STOCK_DIALOG_QUESTION,
+ image = gtk_image_new_from_icon_name ("dialog-question",
GTK_ICON_SIZE_DIALOG);
label = gtk_label_new (NULL);