demos/gtk-demo/clipboard.c: Use accessor functions to access GtkSelectionData
This commit is contained in:
parent
7105e8e907
commit
a66f095b62
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user