aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2001-09-14 07:46:03 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2001-09-14 07:46:03 +0800
commit638ad0ba0b02766c7e48a92d72366cf6fc39e4c1 (patch)
tree85510393655da2e0a6dd58a0d94e47444619ca48 /shell/e-shell.c
parent1c75ae8c60d794793ee66dd0d8139776db9e9c8e (diff)
downloadgsoc2013-evolution-638ad0ba0b02766c7e48a92d72366cf6fc39e4c1.tar
gsoc2013-evolution-638ad0ba0b02766c7e48a92d72366cf6fc39e4c1.tar.gz
gsoc2013-evolution-638ad0ba0b02766c7e48a92d72366cf6fc39e4c1.tar.bz2
gsoc2013-evolution-638ad0ba0b02766c7e48a92d72366cf6fc39e4c1.tar.lz
gsoc2013-evolution-638ad0ba0b02766c7e48a92d72366cf6fc39e4c1.tar.xz
gsoc2013-evolution-638ad0ba0b02766c7e48a92d72366cf6fc39e4c1.tar.zst
gsoc2013-evolution-638ad0ba0b02766c7e48a92d72366cf6fc39e4c1.zip
[Fix #5990, Remembering Evolution window geometry.]
* e-shell.c (impl_Shell_createNewView): gtk_widget_show() the new view returned by `e_shell_create_view()'. (e_shell_restore_from_settings): Same here, after loading the settings. * e-shell-view.c (activate_shortcut_cb): gtk_widget_show() the new view returned by `e_shell_create_view()'. * e-shell-view-menu.c (command_open_folder_in_new_window): gtk_widget_show() the view returned by `e_shell_create_view()'. * e-shell-folder-commands.c (e_shell_command_open_folder_in_other_window): gtk_widget_show() the view returned by `e_shell_create_view()'. * e-shell.c (e_shell_create_view): Don't show the view automatically anymore. * e-shell-view.c (e_shell_view_save_settings): Save the width and height of the window. (e_shell_view_load_settings): Restore the width and the height and gtk_window_set_default_size() based on them. svn path=/trunk/; revision=12816
Diffstat (limited to 'shell/e-shell.c')
-rw-r--r--shell/e-shell.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/shell/e-shell.c b/shell/e-shell.c
index 8ebb607f65..812b585387 100644
--- a/shell/e-shell.c
+++ b/shell/e-shell.c
@@ -268,6 +268,8 @@ impl_Shell_createNewView (PortableServer_Servant servant,
return CORBA_OBJECT_NIL;
}
+ gtk_widget_show (GTK_WIDGET (shell_view));
+
shell_view_interface = e_shell_view_get_corba_interface (shell_view);
if (shell_view_interface == CORBA_OBJECT_NIL) {
CORBA_exception_set (ev, CORBA_USER_EXCEPTION,
@@ -1063,7 +1065,6 @@ e_shell_create_view (EShell *shell,
view = e_shell_view_new (shell);
- gtk_widget_show (GTK_WIDGET (view));
gtk_signal_connect (GTK_OBJECT (view), "delete_event",
GTK_SIGNAL_FUNC (view_delete_event_cb), shell);
gtk_signal_connect (GTK_OBJECT (view), "destroy",
@@ -1354,6 +1355,10 @@ e_shell_restore_from_settings (EShell *shell)
if (! e_shell_view_load_settings (view, i))
retval = FALSE;
+
+ /* This needs to be done after loading the settings as the
+ default size is in the settings as well. */
+ gtk_widget_show (GTK_WIDGET (view));
}
return retval;