[eog] EogSidebar: Fix deprecated GtkStock usage
- From: Felix Riemann <friemann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [eog] EogSidebar: Fix deprecated GtkStock usage
- Date: Fri, 4 Oct 2013 13:28:26 +0000 (UTC)
commit e11fc4056c14d017f19bdb306b29c149b891ed78
Author: Felix Riemann <friemann gnome org>
Date: Thu Oct 3 13:26:26 2013 +0200
EogSidebar: Fix deprecated GtkStock usage
src/eog-sidebar.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/eog-sidebar.c b/src/eog-sidebar.c
index d95f109..ad9d991 100644
--- a/src/eog-sidebar.c
+++ b/src/eog-sidebar.c
@@ -424,8 +424,8 @@ eog_sidebar_init (EogSidebar *eog_sidebar)
G_CALLBACK (eog_sidebar_close_clicked_cb),
eog_sidebar);
- image = gtk_image_new_from_stock (GTK_STOCK_CLOSE,
- GTK_ICON_SIZE_MENU);
+ 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);
@@ -481,7 +481,7 @@ eog_sidebar_add_page (EogSidebar *eog_sidebar,
index = gtk_notebook_append_page (GTK_NOTEBOOK (eog_sidebar->priv->notebook),
main_widget, NULL);
- menu_item = gtk_image_menu_item_new_with_label (title);
+ menu_item = gtk_menu_item_new_with_label (title);
g_signal_connect (menu_item, "activate",
G_CALLBACK (eog_sidebar_menu_item_activate_cb),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]