[gedit/wip/panels-as-stacks: 19/19] Remove icons from side panels.



commit 2957228762ba3b3b133c1cb03db70bfa645c4bf6
Author: Steve Frécinaux <code istique net>
Date:   Mon Jan 20 10:04:13 2014 +0100

    Remove icons from side panels.

 gedit/gedit-window.c                            |   10 ++++------
 plugins/filebrowser/gedit-file-browser-plugin.c |   10 ++++------
 2 files changed, 8 insertions(+), 12 deletions(-)
---
diff --git a/gedit/gedit-window.c b/gedit/gedit-window.c
index 2f6e271..48036ab 100644
--- a/gedit/gedit-window.c
+++ b/gedit/gedit-window.c
@@ -2685,12 +2685,10 @@ setup_side_panel (GeditWindow *window)
 
        documents_panel = gedit_documents_panel_new (window);
        gtk_widget_show_all (documents_panel);
-       gtk_container_add_with_properties (GTK_CONTAINER (window->priv->side_panel),
-                                          documents_panel,
-                                          "name", "GeditWindowDocumentsPanel",
-                                          "title", _("Documents"),
-                                          "icon-name", "view-list-symbolic",
-                                          NULL);
+       gtk_stack_add_titled (GTK_STACK (window->priv->side_panel),
+                             documents_panel,
+                             "GeditWindowDocumentsPanel",
+                             _("Documents"));
 }
 
 static void
diff --git a/plugins/filebrowser/gedit-file-browser-plugin.c b/plugins/filebrowser/gedit-file-browser-plugin.c
index d7817e1..03ab1d8 100644
--- a/plugins/filebrowser/gedit-file-browser-plugin.c
+++ b/plugins/filebrowser/gedit-file-browser-plugin.c
@@ -523,12 +523,10 @@ gedit_file_browser_plugin_activate (GeditWindowActivatable *activatable)
 
        panel = gedit_window_get_side_panel (priv->window);
 
-       gtk_container_add_with_properties (GTK_CONTAINER (panel),
-                                          GTK_WIDGET (priv->tree_widget),
-                                          "name", "GeditFileBrowserPanel",
-                                          "title", _("File Browser"),
-                                          "icon-name", "system-file-manager-symbolic",
-                                          NULL);
+       gtk_stack_add_titled (GTK_STACK (panel),
+                             GTK_WIDGET (priv->tree_widget),
+                             "GeditFileBrowserPanel",
+                             _("File Browser"));
 
        gtk_widget_show (GTK_WIDGET (priv->tree_widget));
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]