[pan2] fix: close posting window
- From: Petr Kovář <pmkovar src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pan2] fix: close posting window
- Date: Sat, 5 Mar 2016 23:34:59 +0000 (UTC)
commit 9471b2244a725b983242362f52fa18133a005cd5
Author: Detlef Graef <detlef graef yahoo de>
Date: Wed Mar 2 19:25:50 2016 +0100
fix: close posting window
pan/gui/post-ui.cc | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/pan/gui/post-ui.cc b/pan/gui/post-ui.cc
index 3c534e2..b2eb64f 100644
--- a/pan/gui/post-ui.cc
+++ b/pan/gui/post-ui.cc
@@ -435,7 +435,7 @@ namespace
void do_open (GtkAction*, gpointer p) { static_cast<PostUI*>(p)->open_draft (); }
void do_charset (GtkAction*, gpointer p) { static_cast<PostUI*>(p)->prompt_for_charset (); }
void do_cte (GtkAction*, gpointer p) { static_cast<PostUI*>(p)->prompt_for_cte (); }
- void do_close (GtkAction*, gpointer p) { static_cast<PostUI*>(p)->close_window (); }
+ void do_close (GtkAction*, gpointer p) { static_cast<PostUI*>(p)->close_window (false); }
void do_wrap (GtkToggleAction * w, gpointer p) { static_cast<PostUI*>(p)->set_wrap_mode
(gtk_toggle_action_get_active (w)); }
void do_edit2 (GtkToggleAction * w, gpointer p) { static_cast<PostUI*>(p)->set_always_run_editor
(gtk_toggle_action_get_active (w)); }
void do_wrap_selected(GtkAction*, gpointer p) { static_cast<PostUI*>(p)->wrap_selection(); }
@@ -712,7 +712,7 @@ namespace
{
gboolean delete_event_cb (GtkWidget*, GdkEvent*, gpointer user_data)
{
- static_cast<PostUI*>(user_data)->close_window (true);
+ static_cast<PostUI*>(user_data)->close_window (false);
return true; // don't invoke the default handler that destroys the widget
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]