diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-03-31 23:47:17 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-04-01 00:10:54 +0800 |
commit | 018018fabe7e660f7928b8a7b817bb63202dc734 (patch) | |
tree | 4003e5c682570d819b6baf49528631efb2c52892 /shell/e-shell-window-actions.c | |
parent | 85fac8778261ce1fc80d8857158eb18a399da9ee (diff) | |
download | gsoc2013-evolution-018018fabe7e660f7928b8a7b817bb63202dc734.tar gsoc2013-evolution-018018fabe7e660f7928b8a7b817bb63202dc734.tar.gz gsoc2013-evolution-018018fabe7e660f7928b8a7b817bb63202dc734.tar.bz2 gsoc2013-evolution-018018fabe7e660f7928b8a7b817bb63202dc734.tar.lz gsoc2013-evolution-018018fabe7e660f7928b8a7b817bb63202dc734.tar.xz gsoc2013-evolution-018018fabe7e660f7928b8a7b817bb63202dc734.tar.zst gsoc2013-evolution-018018fabe7e660f7928b8a7b817bb63202dc734.zip |
Remove more Express Mode hacks.
This removes all traces of Express Mode from all but the contact editor
and calendar appointment editor. Need to evaluate the remaining cases
individually.
Diffstat (limited to 'shell/e-shell-window-actions.c')
-rw-r--r-- | shell/e-shell-window-actions.c | 43 |
1 files changed, 4 insertions, 39 deletions
diff --git a/shell/e-shell-window-actions.c b/shell/e-shell-window-actions.c index 0863c1bdcd..b254328e42 100644 --- a/shell/e-shell-window-actions.c +++ b/shell/e-shell-window-actions.c @@ -372,16 +372,10 @@ action_preferences_cb (GtkAction *action, shell_backend = e_shell_view_get_shell_backend (shell_view); shell_backend_class = E_SHELL_BACKEND_GET_CLASS (shell_backend); - if (shell_backend_class->preferences_page != NULL) { - if (e_shell_get_express_mode (shell)) - e_preferences_window_filter_page ( - E_PREFERENCES_WINDOW (preferences_window), - shell_backend_class->preferences_page); - else - e_preferences_window_show_page ( - E_PREFERENCES_WINDOW (preferences_window), - shell_backend_class->preferences_page); - } + if (shell_backend_class->preferences_page != NULL) + e_preferences_window_show_page ( + E_PREFERENCES_WINDOW (preferences_window), + shell_backend_class->preferences_page); } /** @@ -1404,30 +1398,9 @@ e_shell_window_actions_init (EShellWindow *shell_window) g_free (path); } -static GList * -express_filter_new_actions (GList *list) -{ - GList *l, *filtered = NULL; - - for (l = list; l; l = l->next) { - const gchar *backend_name; - - backend_name = g_object_get_data ( - G_OBJECT (l->data), "backend-name"); - - /* only the addressbook pieces in express mode */ - if (!strcmp (backend_name, "addressbook")) - filtered = g_list_prepend (filtered, l->data); - } - g_list_free (list); - - return g_list_reverse (filtered); -} - GtkWidget * e_shell_window_create_new_menu (EShellWindow *shell_window) { - EShell *shell; GtkActionGroup *action_group; GList *new_item_actions; GList *new_source_actions; @@ -1435,8 +1408,6 @@ e_shell_window_create_new_menu (EShellWindow *shell_window) GtkWidget *menu; GtkWidget *separator; - shell = e_shell_window_get_shell (shell_window); - /* Get sorted lists of "new item" and "new source" actions. */ action_group = ACTION_GROUP (NEW_ITEM); @@ -1464,12 +1435,6 @@ e_shell_window_create_new_menu (EShellWindow *shell_window) for (iter = list; iter != NULL; iter = iter->next) iter->data = gtk_action_create_menu_item (iter->data); - if (e_shell_get_express_mode (shell)) { - new_item_actions = express_filter_new_actions (new_item_actions); - g_list_free (new_source_actions); - new_source_actions = NULL; - } - for (iter = new_item_actions; iter != NULL; iter = iter->next) iter->data = gtk_action_create_menu_item (iter->data); |