aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorRodney Dawes <dobey@novell.com>2004-06-25 05:27:44 +0800
committerRodney Dawes <dobey@src.gnome.org>2004-06-25 05:27:44 +0800
commit516c77a7a9e1c7a8980dd2efa3b43e521d474079 (patch)
tree2637c93b080b4e4467cefe1169fc16fd521a2580 /mail
parent348fd04aee155d7f90d3e0c3115db83be57a2b98 (diff)
downloadgsoc2013-evolution-516c77a7a9e1c7a8980dd2efa3b43e521d474079.tar
gsoc2013-evolution-516c77a7a9e1c7a8980dd2efa3b43e521d474079.tar.gz
gsoc2013-evolution-516c77a7a9e1c7a8980dd2efa3b43e521d474079.tar.bz2
gsoc2013-evolution-516c77a7a9e1c7a8980dd2efa3b43e521d474079.tar.lz
gsoc2013-evolution-516c77a7a9e1c7a8980dd2efa3b43e521d474079.tar.xz
gsoc2013-evolution-516c77a7a9e1c7a8980dd2efa3b43e521d474079.tar.zst
gsoc2013-evolution-516c77a7a9e1c7a8980dd2efa3b43e521d474079.zip
Add code to set the parent, position, and type hint of the "Add address"
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 svn path=/trunk/; revision=26501
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog7
-rw-r--r--mail/em-utils.c5
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);