diff options
author | Owen Taylor <otaylor@redhat.com> | 1998-10-20 18:43:54 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 1998-10-20 18:43:54 +0000 |
commit | 4b2885b5d36aa82b227c0b3c24d2ec67a55a5194 (patch) | |
tree | 4d64121bb83c79c0c132b13af99619ef477373c6 /gtk/gtkselection.c | |
parent | 7a564681b1591f69644017aef70948cfaf0e603a (diff) | |
download | gtk+-4b2885b5d36aa82b227c0b3c24d2ec67a55a5194.tar.gz |
Always send "drag_leave" to dests without GTK_DEST_DEFAULT_MOTION.
Tue Oct 20 14:53:28 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtkdnd.c: Always send "drag_leave" to dests
without GTK_DEST_DEFAULT_MOTION.
Tue Oct 20 11:55:24 1998 Owen Taylor <otaylor@redhat.com>
* gdk/gdk.c (gdk_event_translate): Handle DestroyNotify
on destroyed windows so we clear the XID table properly.
Finish up restructure of return value handling that
was half-done before.
Tue Oct 20 12:57:10 1998 Owen Taylor <otaylor@redhat.com>
* gdk/gdk.c (gdk_send_clientmessage_to_all): Hunt
the window tree more comprehensively, so that we find
client windows hidden under non-toplevels.
Tue Oct 20 12:43:04 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtkselection.c (gtk_selection_data_set):
Maintain the null-termintation guarantee, even when
data = NULL, length = 0. (Warn on data = NULL,
length > 0)
Mon Oct 19 16:41:44 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwidget.h (struct _GtkWidgetClass): Add in coordinates
into function prototype for drag_data_received.
Diffstat (limited to 'gtk/gtkselection.c')
-rw-r--r-- | gtk/gtkselection.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/gtk/gtkselection.c b/gtk/gtkselection.c index f0094b0218..d9dc09b6fb 100644 --- a/gtk/gtkselection.c +++ b/gtk/gtkselection.c @@ -686,7 +686,14 @@ gtk_selection_data_set (GtkSelectionData *selection_data, selection_data->data[length] = 0; } else - selection_data->data = NULL; + { + g_return_if_fail (length <= 0); + + if (length < 0) + selection_data->data = NULL; + else + selection_data->data = g_strdup(""); + } selection_data->length = length; } |