aboutsummaryrefslogtreecommitdiff
path: root/src/alertpanel.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2006-01-24 09:07:56 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2006-01-24 09:07:56 +0000
commit98c43b37ee728b552e945e7ea4c721f6a640fc49 (patch)
tree3f68d1f20b6f37b63778d5b79dc54817df857fe4 /src/alertpanel.c
parent08d493a056aa2bc326f8d1f5f3c0dfa61511ceb1 (diff)
fixed wrong dialog window position.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@922 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/alertpanel.c')
-rw-r--r--src/alertpanel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/alertpanel.c b/src/alertpanel.c
index 946a87ec..91e1559d 100644
--- a/src/alertpanel.c
+++ b/src/alertpanel.c
@@ -169,8 +169,6 @@ void alertpanel_error(const gchar *format, ...)
static void alertpanel_show(void)
{
- gtk_window_set_modal(GTK_WINDOW(dialog), TRUE);
- manage_window_set_transient(GTK_WINDOW(dialog));
value = G_ALERTWAIT;
inc_lock();
@@ -213,6 +211,8 @@ static void alertpanel_create(const gchar *title,
gtk_window_set_policy(GTK_WINDOW(dialog), FALSE, FALSE, FALSE);
gtk_window_set_position(GTK_WINDOW(dialog),
GTK_WIN_POS_CENTER_ON_PARENT);
+ gtk_window_set_modal(GTK_WINDOW(dialog), TRUE);
+ manage_window_set_transient(GTK_WINDOW(dialog));
gtk_dialog_set_has_separator(GTK_DIALOG(dialog), FALSE);
g_signal_connect(G_OBJECT(dialog), "delete_event",
G_CALLBACK(alertpanel_deleted),