]> Pileus Git - ~andy/gtk/commitdiff
demos/gtk-demo/clipboard.c: Use accessor functions to access GtkSelectionData
authorJavier Jardón <jjardon@gnome.org>
Wed, 15 Dec 2010 23:57:13 +0000 (23:57 +0000)
committerJavier Jardón <jjardon@gnome.org>
Wed, 15 Dec 2010 23:58:15 +0000 (23:58 +0000)
demos/gtk-demo/clipboard.c

index e48eb509ed46cf522664b0c4de21c59f1e0d691b..1a321cc68265e2871fece16e9114f0ae6c0176d7 100644 (file)
@@ -125,7 +125,7 @@ drag_data_received (GtkWidget        *widget,
 {
   GdkPixbuf *pixbuf;
 
-  if (selection_data->length > 0)
+  if (gtk_selection_data_get_length (selection_data) > 0)
     {
       pixbuf = gtk_selection_data_get_pixbuf (selection_data);
       gtk_image_set_from_pixbuf (GTK_IMAGE (data), pixbuf);