[gedit] Use symbolic icon for close renderer icon.
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] Use symbolic icon for close renderer icon.
- Date: Fri, 23 Dec 2011 20:29:12 +0000 (UTC)
commit d709062e5057e58f2ce871929de05545e397dd6c
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Fri Dec 23 21:30:37 2011 +0100
Use symbolic icon for close renderer icon.
gedit/gedit-close-button.c | 2 +-
gedit/gedit-documents-panel.c | 6 +++++-
2 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/gedit/gedit-close-button.c b/gedit/gedit-close-button.c
index a0f7520..f99861c 100644
--- a/gedit/gedit-close-button.c
+++ b/gedit/gedit-close-button.c
@@ -59,7 +59,7 @@ gedit_close_button_init (GeditCloseButton *button)
icon = g_themed_icon_new_with_default_fallbacks ("window-close-symbolic");
image = gtk_image_new_from_gicon (icon, GTK_ICON_SIZE_MENU);
gtk_widget_show (image);
- g_object_unref(icon);
+ g_object_unref (icon);
gtk_container_add (GTK_CONTAINER (button), image);
diff --git a/gedit/gedit-documents-panel.c b/gedit/gedit-documents-panel.c
index 0a5a2b4..a2f0420 100644
--- a/gedit/gedit-documents-panel.c
+++ b/gedit/gedit-documents-panel.c
@@ -1085,6 +1085,7 @@ gedit_documents_panel_init (GeditDocumentsPanel *panel)
GtkTreeViewColumn *column;
GtkCellRenderer *cell;
GtkTreeSelection *selection;
+ GIcon *icon;
gedit_debug (DEBUG_PANEL);
@@ -1152,7 +1153,10 @@ gedit_documents_panel_init (GeditDocumentsPanel *panel)
column);
cell = gedit_cell_renderer_button_new ();
- g_object_set (cell, "stock-id", GTK_STOCK_CLOSE, NULL);
+
+ icon = g_themed_icon_new_with_default_fallbacks ("window-close-symbolic");
+ g_object_set (cell, "gicon", icon, NULL);
+ g_object_unref (icon);
gtk_tree_view_column_pack_end (column, cell, FALSE);
g_signal_connect (cell,
"clicked",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]