[balsa/gtk3] Check for NULL focus widget
- From: Peter Bloomfield <PeterB src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa/gtk3] Check for NULL focus widget
- Date: Thu, 7 Jun 2012 15:49:48 +0000 (UTC)
commit 29aaa90324ee801155b31e149f60af97ccef7222
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Thu Jun 7 11:49:14 2012 -0400
Check for NULL focus widget
* src/main-window.c: check for NULL focus widget.
ChangeLog | 4 ++++
src/main-window.c | 3 +++
2 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index d09de0c..7fe5dc9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2012-06-07 Peter Bloomfield
+
+ * src/main-window.c: check for NULL focus widget.
+
2012-06-06 Peter Bloomfield
* libbalsa/mailbox.c (libbalsa_mailbox_close), (lbm_msgno_removed),
diff --git a/src/main-window.c b/src/main-window.c
index f8a9df7..15e5998 100644
--- a/src/main-window.c
+++ b/src/main-window.c
@@ -3795,6 +3795,9 @@ bw_copy_cb(GtkAction * action, gpointer data)
guint signal_id;
GtkWidget *focus_widget = gtk_window_get_focus(GTK_WINDOW(bw));
+ if (!focus_widget)
+ return;
+
signal_id = g_signal_lookup("copy-clipboard",
G_TYPE_FROM_INSTANCE(focus_widget));
if (signal_id)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]