[gtk+] gtk/gtkfilechooserbutton.c: Use accessor functions to access GtkSelectionData



commit 499aa2b3b90817e82dec537294df3c3fbe623307
Author: Javier Jardón <jjardon gnome org>
Date:   Wed Dec 15 23:55:31 2010 +0000

    gtk/gtkfilechooserbutton.c: Use accessor functions to access GtkSelectionData

 gtk/gtkfilechooserbutton.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkfilechooserbutton.c b/gtk/gtkfilechooserbutton.c
index 3db63bf..695664d 100644
--- a/gtk/gtkfilechooserbutton.c
+++ b/gtk/gtkfilechooserbutton.c
@@ -1041,7 +1041,7 @@ gtk_file_chooser_button_drag_data_received (GtkWidget	     *widget,
 										 data, type,
 										 drag_time);
 
-  if (widget == NULL || context == NULL || data == NULL || data->length < 0)
+  if (widget == NULL || context == NULL || data == NULL || gtk_selection_data_get_length (data) < 0)
     return;
 
   switch (type)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]