diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-11-17 08:15:04 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-11-17 08:15:04 +0000 |
commit | 9559d8397d9c0ce7105430c4982f58993c35ee4e (patch) | |
tree | be3df3738457ed2b310f0d4152f6c07bc55515ae /src/prefs_common_dialog.c | |
parent | 29abe1279ca6ee5cbf69205517b66f8cbb1ee189 (diff) |
fixed crash when quote colors dialog was closed by the window close button.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@757 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/prefs_common_dialog.c')
-rw-r--r-- | src/prefs_common_dialog.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/prefs_common_dialog.c b/src/prefs_common_dialog.c index 2918ef07..c0b44fe6 100644 --- a/src/prefs_common_dialog.c +++ b/src/prefs_common_dialog.c @@ -550,6 +550,9 @@ static gboolean prefs_quote_description_key_pressed static void prefs_quote_colors_dialog (void); static void prefs_quote_colors_dialog_create (void); +static gint prefs_quote_colors_deleted (GtkWidget *widget, + GdkEventAny *event, + gpointer data); static gboolean prefs_quote_colors_key_pressed (GtkWidget *widget, GdkEventKey *event, gpointer data); @@ -2830,8 +2833,8 @@ static void prefs_quote_colors_dialog_create(void) gtk_widget_grab_default(ok_btn); MANAGE_WINDOW_SIGNALS_CONNECT(window); - g_signal_connect(G_OBJECT(window), "delete_event", - G_CALLBACK(gtk_main_quit), NULL); + g_signal_connect (G_OBJECT (window), "delete_event", + G_CALLBACK (prefs_quote_colors_deleted), NULL); g_signal_connect(G_OBJECT(window), "key_press_event", G_CALLBACK(prefs_quote_colors_key_pressed), NULL); @@ -2864,6 +2867,13 @@ static void prefs_quote_colors_dialog_create(void) quote_color_win = window; } +static gint prefs_quote_colors_deleted(GtkWidget *widet, GdkEventAny *event, + gpointer data) +{ + gtk_main_quit(); + return TRUE; +} + static gboolean prefs_quote_colors_key_pressed(GtkWidget *widget, GdkEventKey *event, gpointer data) |