diff options
-rw-r--r-- | mail/ChangeLog | 7 | ||||
-rw-r--r-- | mail/em-utils.c | 5 |
2 files changed, 11 insertions, 1 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index 84de1ba05c..a7a86b17ed 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,10 @@ +2004-06-24 Rodney Dawes <dobey@novell.com> + + * em-utils.c (em_utils_add_address): Add code to set the parent, + position, and type hint of the "Add address" dialog + + Fixes #60030 + 2004-06-23 Not Zed <NotZed@Ximian.com> ** See #54030. diff --git a/mail/em-utils.c b/mail/em-utils.c index 0e625110a6..11e4f642c2 100644 --- a/mail/em-utils.c +++ b/mail/em-utils.c @@ -556,7 +556,10 @@ void em_utils_add_address(struct _GtkWidget *parent, const char *email) win = gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_window_set_title((GtkWindow *)win, _("Add address")); - + gtk_window_set_transient_for((GtkWindow *)win, ((GtkWindow *)parent)); + gtk_window_set_position((GtkWindow *)win, GTK_WIN_POS_CENTER_ON_PARENT); + gtk_window_set_type_hint((GtkWindow *)win, GDK_WINDOW_TYPE_HINT_DIALOG); + control = bonobo_widget_new_control("OAFIID:GNOME_Evolution_Addressbook_AddressPopup:" BASE_VERSION, CORBA_OBJECT_NIL); bonobo_widget_set_property((BonoboWidget *)control, "email", TC_CORBA_string, buf, NULL); g_free (buf); |