From aec912b5fc328171d989963421a6ceed0d8c6f03 Mon Sep 17 00:00:00 2001 From: Xan Lopez Date: Thu, 17 Nov 2011 16:57:42 +0100 Subject: Remove toolbar editor The UI is gone, but the infrastructure still persists (EggToolbarModel, etc). Further cleanups are possible. https://bugzilla.gnome.org/show_bug.cgi?id=664260 --- src/ephy-window.c | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'src/ephy-window.c') diff --git a/src/ephy-window.c b/src/ephy-window.c index 151862439..3dcf58f47 100644 --- a/src/ephy-window.c +++ b/src/ephy-window.c @@ -189,9 +189,6 @@ static const GtkActionEntry ephy_menu_entries [] = { /* View menu */ - { "ViewToolbarEditor", NULL, N_("_Customize Toolbars…"), NULL, - N_("Customize toolbars"), - G_CALLBACK (window_cmd_edit_toolbar) }, { "ViewStop", GTK_STOCK_STOP, N_("_Stop"), "Escape", N_("Stop current data transfer"), G_CALLBACK (window_cmd_view_stop) }, @@ -810,7 +807,6 @@ sync_chromes_visibility (EphyWindow *window) { EphyWindowPrivate *priv = window->priv; GtkWidget *menubar; - GtkAction *action; gboolean show_menubar, show_toolbar, show_tabsbar; if (priv->closing) return; @@ -826,19 +822,6 @@ sync_chromes_visibility (EphyWindow *window) g_object_set (priv->toolbar, "visible", show_toolbar, NULL); ephy_notebook_set_show_tabs (EPHY_NOTEBOOK (priv->notebook), show_tabsbar); - - action = gtk_action_group_get_action (priv->action_group, "ViewToolbarEditor"); - - if (priv->fullscreen_popup != NULL) - { - g_object_set (priv->fullscreen_popup, "visible", !show_toolbar, NULL); - - ephy_action_change_sensitivity_flags (action, SENS_FLAG_CHROME, TRUE); - } - else - { - ephy_action_change_sensitivity_flags (action, SENS_FLAG_CHROME, !show_toolbar); - } } static void -- cgit v1.2.3