diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2008-03-28 08:51:00 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2008-03-28 08:51:00 +0000 |
commit | eebe5e587f162490e3603421496a84406eaf719b (patch) | |
tree | d2a127b0238071a589b402e1c2603f6c4198b613 /src | |
parent | eb8893ef1a4f97c86f0fa4bacb8695f8d26ccb29 (diff) |
delete compose attach property dialog when closed.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1969 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src')
-rw-r--r-- | src/compose.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/compose.c b/src/compose.c index 86323e4a..716021ae 100644 --- a/src/compose.c +++ b/src/compose.c @@ -5694,8 +5694,7 @@ static void compose_attach_property(Compose *compose) g_list_foreach(rows, (GFunc)gtk_tree_path_free, NULL); g_list_free(rows); - if (!attach_prop.window) - compose_attach_property_create(&cancelled); + compose_attach_property_create(&cancelled); gtk_widget_grab_focus(attach_prop.ok_btn); gtk_widget_show(attach_prop.window); manage_window_set_transient(GTK_WINDOW(attach_prop.window)); @@ -5729,10 +5728,8 @@ static void compose_attach_property(Compose *compose) cancelled = FALSE; gtk_main(); - if (cancelled == TRUE) { - gtk_widget_hide(attach_prop.window); + if (cancelled == TRUE) break; - } entry_text = gtk_entry_get_text (GTK_ENTRY(attach_prop.mimetype_entry)); @@ -5790,10 +5787,11 @@ static void compose_attach_property(Compose *compose) COL_SIZE, to_human_readable(ainfo->size), COL_NAME, ainfo->name, -1); - - gtk_widget_hide(attach_prop.window); break; } + + gtk_widget_destroy(attach_prop.window); + memset(&attach_prop, 0, sizeof(attach_prop)); } #define SET_LABEL_AND_ENTRY(str, entry, top) \ @@ -5825,7 +5823,7 @@ static void compose_attach_property_create(gboolean *cancelled) GtkWidget *ok_btn; GtkWidget *cancel_btn; - debug_print("Creating attach_property window...\n"); + debug_print("Creating attach property window...\n"); window = gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_widget_set_size_request(window, 480, -1); |