From 516c77a7a9e1c7a8980dd2efa3b43e521d474079 Mon Sep 17 00:00:00 2001 From: Rodney Dawes Date: Thu, 24 Jun 2004 21:27:44 +0000 Subject: Add code to set the parent, position, and type hint of the "Add address" 2004-06-24 Rodney Dawes * em-utils.c (em_utils_add_address): Add code to set the parent, position, and type hint of the "Add address" dialog Fixes #60030 svn path=/trunk/; revision=26501 --- mail/ChangeLog | 7 +++++++ mail/em-utils.c | 5 ++++- 2 files changed, 11 insertions(+), 1 deletion(-) (limited to 'mail') 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 + + * 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 ** 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); -- cgit v1.2.3