** Fixes part of bug #325882
authorMatthew Barnes <mbarnes@redhat.com>
Mon, 5 May 2008 15:10:46 +0000 (15:10 +0000)
committerMatthew Barnes <mbarnes@src.gnome.org>
Mon, 5 May 2008 15:10:46 +0000 (15:10 +0000)
2008-05-05  Matthew Barnes  <mbarnes@redhat.com>

** Fixes part of bug #325882

* libedataserverui/e-passwords.c (ep_ask_password):
If a parent window was given, make the password dialog transient for
the parent and center it over the parent.

svn path=/trunk/; revision=8736

libedataserverui/ChangeLog
libedataserverui/e-passwords.c

index 7df09eb..c1872a3 100644 (file)
@@ -1,3 +1,11 @@
+2008-05-05  Matthew Barnes  <mbarnes@redhat.com>
+
+       ** Fixes part of bug #325882
+
+       * e-passwords.c (ep_ask_password):
+       If a parent window was given, make the password dialog transient for
+       the parent and center it over the parent.
+
 2008-04-30  Matthew Barnes  <mbarnes@redhat.com>
 
        ** Fixes bug #520532
index cc100bc..093112c 100644 (file)
@@ -990,6 +990,8 @@ ep_ask_password (EPassMsg *msg)
        gtk_dialog_set_default_response (
                GTK_DIALOG (widget), GTK_RESPONSE_OK);
         gtk_window_set_resizable (GTK_WINDOW (widget), FALSE);
+       gtk_window_set_transient_for (GTK_WINDOW (widget), msg->parent);
+       gtk_window_set_position (GTK_WINDOW (widget), GTK_WIN_POS_CENTER_ON_PARENT);
        gtk_container_set_border_width (GTK_CONTAINER (widget), 12);
        password_dialog = GTK_DIALOG (widget);