]> Pileus Git - ~andy/gtk/commitdiff
Silently do nothing when recipient is NULL, as described in the doc
authorOwen Taylor <otaylor@redhat.com>
Tue, 28 Oct 2003 14:48:31 +0000 (14:48 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Tue, 28 Oct 2003 14:48:31 +0000 (14:48 +0000)
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)

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtkxembed.c

index b26f4e42b7c32644d1fa1af291682af4eef6becb..81db898015456f3117f5b082ffba08a9e4cf390c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+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)
+
 Tue Oct 28 09:21:29 2003  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkmain.c (gtk_check_version): Move docs inline,
index b26f4e42b7c32644d1fa1af291682af4eef6becb..81db898015456f3117f5b082ffba08a9e4cf390c 100644 (file)
@@ -1,3 +1,9 @@
+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)
+
 Tue Oct 28 09:21:29 2003  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkmain.c (gtk_check_version): Move docs inline,
index b26f4e42b7c32644d1fa1af291682af4eef6becb..81db898015456f3117f5b082ffba08a9e4cf390c 100644 (file)
@@ -1,3 +1,9 @@
+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)
+
 Tue Oct 28 09:21:29 2003  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkmain.c (gtk_check_version): Move docs inline,
index b26f4e42b7c32644d1fa1af291682af4eef6becb..81db898015456f3117f5b082ffba08a9e4cf390c 100644 (file)
@@ -1,3 +1,9 @@
+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)
+
 Tue Oct 28 09:21:29 2003  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkmain.c (gtk_check_version): Move docs inline,
index b26f4e42b7c32644d1fa1af291682af4eef6becb..81db898015456f3117f5b082ffba08a9e4cf390c 100644 (file)
@@ -1,3 +1,9 @@
+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)
+
 Tue Oct 28 09:21:29 2003  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkmain.c (gtk_check_version): Move docs inline,
index bc1f5dfa2bafc98a2743dbc3a7c5f14addba0428..1c01fbb684edec8df6c745aacc10254d64b99c68 100644 (file)
@@ -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 ||