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)
This commit is contained in:
Owen Taylor 2003-10-28 14:48:31 +00:00 committed by Owen Taylor
parent e4a657251f
commit 5f9345d829
6 changed files with 35 additions and 2 deletions

View 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,

View 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,

View 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,

View 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,

View 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,

View 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 ||