summaryrefslogtreecommitdiff
path: root/gtk/gtkxembed.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2003-10-28 14:48:31 +0000
committerOwen Taylor <otaylor@src.gnome.org>2003-10-28 14:48:31 +0000
commit5f9345d82996ddf40523fb2ee303dd79f8325457 (patch)
treeee4cece8463b921a742ef395cb863e0adbf6eee9 /gtk/gtkxembed.c
parente4a657251f32a6bc8447548c01ceb445e955cc84 (diff)
downloadgtk+-5f9345d82996ddf40523fb2ee303dd79f8325457.tar.gz
Silently do nothing when recipient is NULL, as described in the doc
Tue Oct 28 09:44:16 2003 Owen Taylor <otaylor@redhat.com> * gtk/gtkxembed.c (_gtk_xembed_send_focus_message): Silently do nothing when recipient is NULL, as described in the doc comment. (#123107, Thomas Leonard)
Diffstat (limited to 'gtk/gtkxembed.c')
-rw-r--r--gtk/gtkxembed.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/gtk/gtkxembed.c b/gtk/gtkxembed.c
index bc1f5dfa2b..1c01fbb684 100644
--- a/gtk/gtkxembed.c
+++ b/gtk/gtkxembed.c
@@ -122,7 +122,7 @@ gtk_xembed_get_time (void)
/**
* _gtk_xembed_send_message:
* @recipient: window to which to send the window, or %NULL
- * in which case nothing wil be sent
+ * in which case nothing will be sent
* @message: type of message
* @detail: detail field of message
* @data1: data1 field of message
@@ -170,7 +170,7 @@ _gtk_xembed_send_message (GdkWindow *recipient,
/**
* _gtk_xembed_send_focus_message:
* @recipient: window to which to send the window, or %NULL
- * in which case nothing wil be sent
+ * in which case nothing will be sent
* @message: type of message
* @detail: detail field of message
*
@@ -184,6 +184,9 @@ _gtk_xembed_send_focus_message (GdkWindow *recipient,
glong detail)
{
gulong flags = 0;
+
+ if (!recipient)
+ return;
g_return_if_fail (GDK_IS_WINDOW (recipient));
g_return_if_fail (message == XEMBED_FOCUS_IN ||