diff options
author | Matthias Clasen <mclasen@redhat.com> | 2005-10-27 04:31:33 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2005-10-27 04:31:33 +0000 |
commit | bc41f73c4c8445d4eeeb4308e31d7977f52c5ba9 (patch) | |
tree | 5028ea91d6c3d8012ec5d4c90deb7026dcf4bbc6 /demos | |
parent | e80f12b67652aad14a02fdbfb341177a9a515427 (diff) | |
download | gtk+-bc41f73c4c8445d4eeeb4308e31d7977f52c5ba9.tar.gz |
Only set the text if it is not NULL. (#319930, Thomas Klausner)
2005-10-27 Matthias Clasen <mclasen@redhat.com>
* demos/gtk-demo/clipboard.c (paste_received): Only set the
text if it is not NULL. (#319930, Thomas Klausner)
* gtk/gtkselection.c (gtk_selection_data_get_pixbuf): Close the
loader before trying to get the pixbuf. (#319930, Thomas Klausner)
Diffstat (limited to 'demos')
-rw-r--r-- | demos/gtk-demo/clipboard.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/demos/gtk-demo/clipboard.c b/demos/gtk-demo/clipboard.c index 96a993db5a..9a85685379 100644 --- a/demos/gtk-demo/clipboard.c +++ b/demos/gtk-demo/clipboard.c @@ -41,7 +41,8 @@ paste_received (GtkClipboard *clipboard, entry = GTK_WIDGET (user_data); /* Set the entry text */ - gtk_entry_set_text (GTK_ENTRY (entry), text); + if(text) + gtk_entry_set_text (GTK_ENTRY (entry), text); } void |