[gedit/wip/redesign] Remove toolbar
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit/wip/redesign] Remove toolbar
- Date: Mon, 6 May 2013 17:30:13 +0000 (UTC)
commit 661a8a01ceca5c2853abc00a2e580a9a2a844c77
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Mon May 6 15:51:03 2013 +0200
Remove toolbar
gedit/gedit-window-private.h | 1 -
gedit/gedit-window.c | 23 -----------------------
2 files changed, 0 insertions(+), 24 deletions(-)
---
diff --git a/gedit/gedit-window-private.h b/gedit/gedit-window-private.h
index bf54dea..4522840 100644
--- a/gedit/gedit-window-private.h
+++ b/gedit/gedit-window-private.h
@@ -91,7 +91,6 @@ struct _GeditWindowPrivate
GtkActionGroup *languages_action_group;
GtkActionGroup *documents_list_action_group;
guint documents_list_menu_ui_id;
- GtkWidget *toolbar;
GtkWidget *menubar;
GtkWidget *headerbar;
diff --git a/gedit/gedit-window.c b/gedit/gedit-window.c
index 50192b1..2eb0fff 100644
--- a/gedit/gedit-window.c
+++ b/gedit/gedit-window.c
@@ -1115,13 +1115,6 @@ recent_chooser_item_activated (GtkRecentChooser *chooser,
}
static void
-set_non_homogeneus (GtkWidget *widget,
- gpointer data)
-{
- gtk_tool_item_set_homogeneous (GTK_TOOL_ITEM (widget), FALSE);
-}
-
-static void
setup_headerbar_open_button (GeditWindow *window)
{
GtkMenu *recent_menu;
@@ -1231,22 +1224,6 @@ create_menu_bar_and_toolbar (GeditWindow *window)
g_object_unref (action_group);
window->priv->menubar = gtk_ui_manager_get_widget (manager, "/MenuBar");
-
- window->priv->toolbar = gtk_ui_manager_get_widget (manager, "/ToolBar");
- gtk_style_context_add_class (gtk_widget_get_style_context (window->priv->toolbar),
- GTK_STYLE_CLASS_PRIMARY_TOOLBAR);
-
- /* XXX: We shouldn't need this special case, gtk+ should take care of
- using this setting when it is in windows */
-#ifdef G_OS_WIN32
- gtk_toolbar_set_style (GTK_TOOLBAR (window->priv->toolbar),
- GTK_TOOLBAR_ICONS);
-#else
- gtk_toolbar_unset_style (GTK_TOOLBAR (window->priv->toolbar));
-#endif
- gtk_container_foreach (GTK_CONTAINER (window->priv->toolbar),
- (GtkCallback)set_non_homogeneus,
- NULL);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]