aboutsummaryrefslogtreecommitdiff
path: root/src/addressbook.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2006-03-06 08:53:50 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2006-03-06 08:53:50 +0000
commite00a33ba1fe858db0571adc5f9e1b486489a523c (patch)
tree84d1a7c193969f7682da2fc74a224774c0c1e0c8 /src/addressbook.c
parentecd490d2e97a6f43c8a2d7f9a684f6ec4d0bd3da (diff)
preserve the window position of address book.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1028 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/addressbook.c')
-rw-r--r--src/addressbook.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/addressbook.c b/src/addressbook.c
index a3de83f2..fb469c3e 100644
--- a/src/addressbook.c
+++ b/src/addressbook.c
@@ -359,7 +359,7 @@ static GtkItemFactoryEntry addressbook_entries[] =
{N_("/_Address/_Delete"), NULL, addressbook_delete_address_cb, 0, NULL},
{N_("/_Tools"), NULL, NULL, 0, "<Branch>"},
{N_("/_Tools/Import _LDIF file"), NULL, addressbook_import_ldif_cb, 0, NULL},
- {N_("/_Help"), NULL, NULL, 0, "<LastBranch>"},
+ {N_("/_Help"), NULL, NULL, 0, "<Branch>"},
{N_("/_Help/_About"), NULL, about_show, 0, NULL}
};
@@ -500,6 +500,8 @@ static void addressbook_create(void)
gtk_window_set_policy(GTK_WINDOW(window), TRUE, TRUE, TRUE);
gtk_widget_set_size_request(window, prefs_common.addressbook_width,
prefs_common.addressbook_height);
+ gtk_window_move(GTK_WINDOW(window), prefs_common.addressbook_x,
+ prefs_common.addressbook_y);
gtk_widget_realize(window);
g_signal_connect(G_OBJECT(window), "delete_event",
@@ -744,6 +746,9 @@ static void addressbook_create(void)
static gint addressbook_close(void)
{
+ gtkut_widget_get_uposition(addrbook.window,
+ &prefs_common.addressbook_x,
+ &prefs_common.addressbook_y);
gtk_widget_hide(addrbook.window);
addressbook_export_to_file();
return TRUE;