[evince] sidebar: Use symbolic icons in sidebar
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince] sidebar: Use symbolic icons in sidebar
- Date: Sat, 29 Nov 2014 11:44:42 +0000 (UTC)
commit 05146e7fbc9742f68e78fa2ed8ee5f7186071610
Author: Trinh Anh Ngoc <atw1990 gmail com>
Date: Sun Nov 23 23:46:59 2014 +0700
sidebar: Use symbolic icons in sidebar
https://bugzilla.gnome.org/show_bug.cgi?id=739836
shell/ev-sidebar-annotations.c | 3 +--
shell/ev-sidebar.c | 9 +--------
2 files changed, 2 insertions(+), 10 deletions(-)
---
diff --git a/shell/ev-sidebar-annotations.c b/shell/ev-sidebar-annotations.c
index 6d971ed..afbe6f9 100644
--- a/shell/ev-sidebar-annotations.c
+++ b/shell/ev-sidebar-annotations.c
@@ -206,9 +206,8 @@ ev_sidebar_annotations_add_annots_palette (EvSidebarAnnotations *ev_annots)
gtk_tool_item_group_set_header_relief (GTK_TOOL_ITEM_GROUP (group), GTK_RELIEF_NONE);
gtk_container_add (GTK_CONTAINER (ev_annots->priv->palette), group);
- /* FIXME: use a better icon than EDIT */
item = gtk_toggle_tool_button_new ();
- gtk_tool_button_set_icon_name (GTK_TOOL_BUTTON (item), GTK_STOCK_EDIT);
+ gtk_tool_button_set_icon_name (GTK_TOOL_BUTTON (item), "document-new-symbolic");
gtk_tool_button_set_label (GTK_TOOL_BUTTON (item), _("Text"));
gtk_widget_set_tooltip_text (GTK_WIDGET (item), _("Add text annotation"));
ev_annots->priv->annot_text_item = item;
diff --git a/shell/ev-sidebar.c b/shell/ev-sidebar.c
index b3c6f96..65489b0 100644
--- a/shell/ev-sidebar.c
+++ b/shell/ev-sidebar.c
@@ -335,7 +335,6 @@ ev_sidebar_init (EvSidebar *ev_sidebar)
GtkWidget *close_button;
GtkWidget *select_hbox;
GtkWidget *arrow;
- GtkWidget *image;
ev_sidebar->priv = EV_SIDEBAR_GET_PRIVATE (ev_sidebar);
@@ -384,17 +383,11 @@ ev_sidebar_init (EvSidebar *ev_sidebar)
gtk_box_pack_start (GTK_BOX (hbox), ev_sidebar->priv->select_button, TRUE, TRUE, 0);
gtk_widget_show (ev_sidebar->priv->select_button);
- close_button = gtk_button_new ();
+ close_button = gtk_button_new_from_icon_name ("window-close-symbolic", GTK_ICON_SIZE_BUTTON);
gtk_button_set_relief (GTK_BUTTON (close_button), GTK_RELIEF_NONE);
g_signal_connect (close_button, "clicked",
G_CALLBACK (ev_sidebar_close_clicked_cb),
ev_sidebar);
-
- image = gtk_image_new_from_stock (GTK_STOCK_CLOSE,
- GTK_ICON_SIZE_MENU);
- gtk_container_add (GTK_CONTAINER (close_button), image);
- gtk_widget_show (image);
-
gtk_box_pack_end (GTK_BOX (hbox), close_button, FALSE, FALSE, 0);
gtk_widget_show (close_button);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]