Check if the owner got is of type GDK_WINDOW_FOREIGN. If so the owner is

Mon May 28 13:28:10  Shivram U  <shivaram.upadhyayula@wipro.com>

	* gtk/gtktextbuffer.c (selection_data_get_buffer): Check if the owner
	got is of type GDK_WINDOW_FOREIGN. If so the owner is not in-process,
	and so return NULL.
This commit is contained in:
Shivram U 2002-05-30 09:43:09 +00:00 committed by Michael Meeks
parent 7796a684bf
commit b719e5d7a8
7 changed files with 39 additions and 0 deletions

View File

@ -1,3 +1,9 @@
Mon May 28 13:28:10 Shivram U <shivaram.upadhyayula@wipro.com>
* gtk/gtktextbuffer.c (selection_data_get_buffer): Check if the owner
got is of type GDK_WINDOW_FOREIGN. If so the owner is not in-process,
and so return NULL.
2002-05-24 Michael Meeks <michael@ximian.com>
* gtk/gtkmain.c (_gtk_find_module): don't leak the paths.

View File

@ -1,3 +1,9 @@
Mon May 28 13:28:10 Shivram U <shivaram.upadhyayula@wipro.com>
* gtk/gtktextbuffer.c (selection_data_get_buffer): Check if the owner
got is of type GDK_WINDOW_FOREIGN. If so the owner is not in-process,
and so return NULL.
2002-05-24 Michael Meeks <michael@ximian.com>
* gtk/gtkmain.c (_gtk_find_module): don't leak the paths.

View File

@ -1,3 +1,9 @@
Mon May 28 13:28:10 Shivram U <shivaram.upadhyayula@wipro.com>
* gtk/gtktextbuffer.c (selection_data_get_buffer): Check if the owner
got is of type GDK_WINDOW_FOREIGN. If so the owner is not in-process,
and so return NULL.
2002-05-24 Michael Meeks <michael@ximian.com>
* gtk/gtkmain.c (_gtk_find_module): don't leak the paths.

View File

@ -1,3 +1,9 @@
Mon May 28 13:28:10 Shivram U <shivaram.upadhyayula@wipro.com>
* gtk/gtktextbuffer.c (selection_data_get_buffer): Check if the owner
got is of type GDK_WINDOW_FOREIGN. If so the owner is not in-process,
and so return NULL.
2002-05-24 Michael Meeks <michael@ximian.com>
* gtk/gtkmain.c (_gtk_find_module): don't leak the paths.

View File

@ -1,3 +1,9 @@
Mon May 28 13:28:10 Shivram U <shivaram.upadhyayula@wipro.com>
* gtk/gtktextbuffer.c (selection_data_get_buffer): Check if the owner
got is of type GDK_WINDOW_FOREIGN. If so the owner is not in-process,
and so return NULL.
2002-05-24 Michael Meeks <michael@ximian.com>
* gtk/gtkmain.c (_gtk_find_module): don't leak the paths.

View File

@ -1,3 +1,9 @@
Mon May 28 13:28:10 Shivram U <shivaram.upadhyayula@wipro.com>
* gtk/gtktextbuffer.c (selection_data_get_buffer): Check if the owner
got is of type GDK_WINDOW_FOREIGN. If so the owner is not in-process,
and so return NULL.
2002-05-24 Michael Meeks <michael@ximian.com>
* gtk/gtkmain.c (_gtk_find_module): don't leak the paths.

View File

@ -2894,6 +2894,9 @@ selection_data_get_buffer (GtkSelectionData *selection_data,
if (owner == NULL)
return NULL;
if (gdk_window_get_window_type (owner) == GDK_WINDOW_FOREIGN)
return NULL;
if (selection_data->type != gdk_atom_intern ("GTK_TEXT_BUFFER_CONTENTS", FALSE))
return NULL;