diff options
author | Matthew Barnes <mbarnes@src.gnome.org> | 2009-01-08 02:23:46 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@src.gnome.org> | 2009-01-08 02:23:46 +0800 |
commit | 8d8e4ac1c23905892a42b779188c852fdead7f5f (patch) | |
tree | 01609ceef7151d75f81fdc8762ac6c25215e8a51 /shell/main.c | |
parent | 13a0edc3d27cce65a0f720e98516f7ab902ad0fc (diff) | |
download | gsoc2013-evolution-8d8e4ac1c23905892a42b779188c852fdead7f5f.tar.gz gsoc2013-evolution-8d8e4ac1c23905892a42b779188c852fdead7f5f.tar.zst gsoc2013-evolution-8d8e4ac1c23905892a42b779188c852fdead7f5f.zip |
Tweak the EShell API.
Disable File -> Close Window when there's only one window.
Replace EMMessageBrowser with EMailBrowser.
svn path=/branches/kill-bonobo/; revision=37009
Diffstat (limited to 'shell/main.c')
-rw-r--r-- | shell/main.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/shell/main.c b/shell/main.c index b078320c32..3c51bc1c46 100644 --- a/shell/main.c +++ b/shell/main.c @@ -317,7 +317,7 @@ idle_cb (gchar **uris) g_object_unref (client); } - shell_window = e_shell_create_window (shell); + shell_window = e_shell_create_shell_window (shell); #if 0 /* MBARNES */ if (shell == NULL) { @@ -462,10 +462,9 @@ set_paths (void) #endif static void -shell_window_destroyed_cb (EShell *shell, - gboolean last_window) +shell_window_destroyed_cb (EShell *shell) { - if (last_window) + if (e_shell_get_shell_windows (shell) == NULL) gtk_main_quit (); } |