[gedit/wip/panels-as-stacks: 3/5] Remove icons from side panels.
- From: Steve Frécinaux <sfre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit/wip/panels-as-stacks: 3/5] Remove icons from side panels.
- Date: Tue, 21 Jan 2014 14:42:54 +0000 (UTC)
commit 57f8459d963d69435cdebeeb113cd9ed8fdd7ec0
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 bfc227d..9b10103 100644
--- a/gedit/gedit-window.c
+++ b/gedit/gedit-window.c
@@ -2684,12 +2684,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]