summaryrefslogtreecommitdiff
path: root/demos
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2005-10-27 04:31:33 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2005-10-27 04:31:33 +0000
commitbc41f73c4c8445d4eeeb4308e31d7977f52c5ba9 (patch)
tree5028ea91d6c3d8012ec5d4c90deb7026dcf4bbc6 /demos
parente80f12b67652aad14a02fdbfb341177a9a515427 (diff)
downloadgtk+-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.c3
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