From 73e4659023c5f2ec11c5e7c974aef116bb320c68 Mon Sep 17 00:00:00 2001 From: Hans Petter Jansson Date: Wed, 23 Jun 2004 23:38:41 +0000 Subject: Set window to be invisible initially. 2004-06-23 Hans Petter Jansson * gui/contact-editor/contact-editor.glade: Set window to be invisible initially. * gui/contact-editor/e-contact-editor.c (e_contact_editor_init): Set the type hint to "normal", and show the window after init. svn path=/trunk/; revision=26487 --- addressbook/ChangeLog | 8 ++++++++ addressbook/gui/contact-editor/contact-editor.glade | 1 - addressbook/gui/contact-editor/e-contact-editor.c | 4 ++++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index 43a21d5fbf..ce0475481a 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,11 @@ +2004-06-23 Hans Petter Jansson + + * gui/contact-editor/contact-editor.glade: Set window to be invisible + initially. + + * gui/contact-editor/e-contact-editor.c (e_contact_editor_init): Set + the type hint to "normal", and show the window after init. + 2004-06-23 Not Zed * gui/widgets/eab-gui-util.c diff --git a/addressbook/gui/contact-editor/contact-editor.glade b/addressbook/gui/contact-editor/contact-editor.glade index 1acbbac9ed..feb81d5bcd 100644 --- a/addressbook/gui/contact-editor/contact-editor.glade +++ b/addressbook/gui/contact-editor/contact-editor.glade @@ -4,7 +4,6 @@ - True Contact Editor GTK_WINDOW_TOPLEVEL GTK_WIN_POS_NONE diff --git a/addressbook/gui/contact-editor/e-contact-editor.c b/addressbook/gui/contact-editor/e-contact-editor.c index 92a32ec958..f74c1204f0 100644 --- a/addressbook/gui/contact-editor/e-contact-editor.c +++ b/addressbook/gui/contact-editor/e-contact-editor.c @@ -2887,6 +2887,7 @@ e_contact_editor_init (EContactEditor *e_contact_editor) e_contact_editor->app = glade_xml_get_widget (gui, "contact editor"); widget = e_contact_editor->app; + gtk_window_set_type_hint (GTK_WINDOW (widget), GDK_WINDOW_TYPE_HINT_NORMAL); gtk_container_set_border_width (GTK_CONTAINER (GTK_DIALOG (widget)->vbox), 0); gtk_container_set_border_width (GTK_CONTAINER (GTK_DIALOG (widget)->action_area), 12); @@ -2923,6 +2924,9 @@ e_contact_editor_init (EContactEditor *e_contact_editor) icon_path = g_build_filename (EVOLUTION_IMAGESDIR, "evolution-contacts-mini.png", NULL); gnome_window_icon_set_from_file (GTK_WINDOW (e_contact_editor->app), icon_path); g_free (icon_path); + + /* show window */ + gtk_widget_show (e_contact_editor->app); } void -- cgit v1.2.3