diff options
author | Not Zed <NotZed@Ximian.com> | 2004-07-26 14:52:00 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2004-07-26 14:52:00 +0800 |
commit | 61d06c1e6e2529cbef444913eb009b2832e70127 (patch) | |
tree | a72be03a80d4c7fe884a7300013124112fd757ec /shell | |
parent | 063717e494cf7b0b20b778ba024cce738ac4ff81 (diff) | |
download | gsoc2013-evolution-61d06c1e6e2529cbef444913eb009b2832e70127.tar.gz gsoc2013-evolution-61d06c1e6e2529cbef444913eb009b2832e70127.tar.zst gsoc2013-evolution-61d06c1e6e2529cbef444913eb009b2832e70127.zip |
merged this into e_shell_create_window, all it was doing was adding a
2004-07-22 Not Zed <NotZed@Ximian.com>
* e-shell.c (create_window): merged this into
e_shell_create_window, all it was doing was adding a stack frame.
(e_shell_create_window): setup the e error default window.
svn path=/trunk/; revision=26729
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ChangeLog | 6 | ||||
-rw-r--r-- | shell/e-shell.c | 33 |
2 files changed, 15 insertions, 24 deletions
diff --git a/shell/ChangeLog b/shell/ChangeLog index 76dbf39a86..bc6e9c1313 100644 --- a/shell/ChangeLog +++ b/shell/ChangeLog @@ -1,3 +1,9 @@ +2004-07-22 Not Zed <NotZed@Ximian.com> + + * e-shell.c (create_window): merged this into + e_shell_create_window, all it was doing was adding a stack frame. + (e_shell_create_window): setup the e error default window. + 2004-07-22 Jeffrey Stedfast <fejj@novell.com> * e-shell-importer.c (e_shell_importer_start_import): Use diff --git a/shell/e-shell.c b/shell/e-shell.c index f1228045f0..c2cdafc89b 100644 --- a/shell/e-shell.c +++ b/shell/e-shell.c @@ -347,29 +347,6 @@ window_weak_notify (void *data, } } -static EShellWindow * -create_window (EShell *shell, - const char *component_id, - EShellWindow *template_window) -{ - EShellPrivate *priv; - EShellWindow *window; - - priv = shell->priv; - - window = E_SHELL_WINDOW (e_shell_window_new (shell, component_id)); - - g_signal_connect (window, "delete_event", G_CALLBACK (window_delete_event_cb), shell); - g_object_weak_ref (G_OBJECT (window), window_weak_notify, shell); - - shell->priv->windows = g_list_prepend (shell->priv->windows, window); - - g_signal_emit (shell, signals[NEW_WINDOW_CREATED], 0, window); - - return window; -} - - /* GObject methods. */ static void @@ -809,10 +786,18 @@ e_shell_create_window (EShell *shell, priv = shell->priv; - window = create_window (shell, component_id, template_window); + window = E_SHELL_WINDOW (e_shell_window_new (shell, component_id)); + + g_signal_connect (window, "delete_event", G_CALLBACK (window_delete_event_cb), shell); + g_object_weak_ref (G_OBJECT (window), window_weak_notify, shell); + shell->priv->windows = g_list_prepend (shell->priv->windows, window); + + g_signal_emit (shell, signals[NEW_WINDOW_CREATED], 0, window); gtk_widget_show (GTK_WIDGET (window)); + e_error_default_parent((GtkWindow *)window); + set_interactive (shell, TRUE); return window; |