diff options
author | Matthew Barnes <mbarnes@src.gnome.org> | 2008-08-31 20:29:42 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@src.gnome.org> | 2008-08-31 20:29:42 +0800 |
commit | 8bbf952350c37970e8947b807513e58e91435998 (patch) | |
tree | 7cac55cfc3250341ac352fecb7f491bbd1ead20b /shell | |
parent | 8bf77996e08c94eb3bd885b2b69b74206868d622 (diff) | |
download | gsoc2013-evolution-8bbf952350c37970e8947b807513e58e91435998.tar gsoc2013-evolution-8bbf952350c37970e8947b807513e58e91435998.tar.gz gsoc2013-evolution-8bbf952350c37970e8947b807513e58e91435998.tar.bz2 gsoc2013-evolution-8bbf952350c37970e8947b807513e58e91435998.tar.lz gsoc2013-evolution-8bbf952350c37970e8947b807513e58e91435998.tar.xz gsoc2013-evolution-8bbf952350c37970e8947b807513e58e91435998.tar.zst gsoc2013-evolution-8bbf952350c37970e8947b807513e58e91435998.zip |
Fix some bugs related to the New menu and toolbar button.
svn path=/branches/kill-bonobo/; revision=36232
Diffstat (limited to 'shell')
-rw-r--r-- | shell/e-shell-window-actions.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/shell/e-shell-window-actions.c b/shell/e-shell-window-actions.c index a43333c5b1..13fe3c7d12 100644 --- a/shell/e-shell-window-actions.c +++ b/shell/e-shell-window-actions.c @@ -1256,12 +1256,12 @@ shell_window_extract_actions (EShellWindow *shell_window, */ for (iter = *source_list; iter != NULL; iter = iter->next) { GtkAction *action = iter->data; - const gchar *view_name; + const gchar *module_name; - view_name = g_object_get_data ( - G_OBJECT (action), "view-name"); + module_name = g_object_get_data ( + G_OBJECT (action), "module-name"); - if (view_name != current_view) + if (strcmp (module_name, current_view) != 0) continue; match_list = g_list_append (match_list, iter); @@ -1372,9 +1372,11 @@ e_shell_window_create_new_menu (EShellWindow *shell_window) separator = gtk_separator_menu_item_new (); new_item_actions = g_list_prepend (new_item_actions, separator); + gtk_widget_show (GTK_WIDGET (separator)); separator = gtk_separator_menu_item_new (); new_source_actions = g_list_prepend (new_source_actions, separator); + gtk_widget_show (GTK_WIDGET (separator)); /* Merge everything into one list, reflecting the menu layout. */ |