aboutsummaryrefslogtreecommitdiff
path: root/src/alertpanel.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2006-01-20 08:02:48 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2006-01-20 08:02:48 +0000
commit01d70967aec02a07321c0724bf62d9dd37daa6e0 (patch)
tree99733c2835a6b9214eddd17dc8d5328e5484fbee /src/alertpanel.c
parent6461df31b433aa0204fbd3e030351437827e65f6 (diff)
place some dialogs at the center on parent window.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@915 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/alertpanel.c')
-rw-r--r--src/alertpanel.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/alertpanel.c b/src/alertpanel.c
index 1fa836f9..946a87ec 100644
--- a/src/alertpanel.c
+++ b/src/alertpanel.c
@@ -1,6 +1,6 @@
/*
* Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2005 Hiroyuki Yamamoto
+ * Copyright (C) 1999-2006 Hiroyuki Yamamoto
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -211,7 +211,8 @@ static void alertpanel_create(const gchar *title,
dialog = gtk_dialog_new();
gtk_window_set_title(GTK_WINDOW(dialog), title);
gtk_window_set_policy(GTK_WINDOW(dialog), FALSE, FALSE, FALSE);
- gtk_window_set_position(GTK_WINDOW(dialog), GTK_WIN_POS_CENTER);
+ gtk_window_set_position(GTK_WINDOW(dialog),
+ GTK_WIN_POS_CENTER_ON_PARENT);
gtk_dialog_set_has_separator(GTK_DIALOG(dialog), FALSE);
g_signal_connect(G_OBJECT(dialog), "delete_event",
G_CALLBACK(alertpanel_deleted),