diff options
author | Javier Jardón <jjardon@gnome.org> | 2010-12-15 23:52:02 +0000 |
---|---|---|
committer | Javier Jardón <jjardon@gnome.org> | 2010-12-15 23:58:15 +0000 |
commit | 640f85e568851652fe153c5b76dd97ebfe900bc1 (patch) | |
tree | e32d7fc8878b96985b4a7333f692933fcee68816 /gtk/gtktreednd.c | |
parent | 1cfd78269ee0928ffd323bf34bbbc1d3f554a6c8 (diff) | |
download | gtk+-640f85e568851652fe153c5b76dd97ebfe900bc1.tar.gz |
gtk/gtktreednd.c: Use accessor functions to access GtkSelectionData
Diffstat (limited to 'gtk/gtktreednd.c')
-rw-r--r-- | gtk/gtktreednd.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gtk/gtktreednd.c b/gtk/gtktreednd.c index f5f436bf02..68cc171177 100644 --- a/gtk/gtktreednd.c +++ b/gtk/gtktreednd.c @@ -273,7 +273,7 @@ gtk_tree_set_row_drag_data (GtkSelectionData *selection_data, g_return_val_if_fail (GTK_IS_TREE_MODEL (tree_model), FALSE); g_return_val_if_fail (path != NULL, FALSE); - if (selection_data->target != gdk_atom_intern_static_string ("GTK_TREE_MODEL_ROW")) + if (gtk_selection_data_get_target (selection_data) != gdk_atom_intern_static_string ("GTK_TREE_MODEL_ROW")) return FALSE; path_str = gtk_tree_path_to_string (path); @@ -336,14 +336,14 @@ gtk_tree_get_row_drag_data (GtkSelectionData *selection_data, if (path) *path = NULL; - - if (selection_data->target != gdk_atom_intern_static_string ("GTK_TREE_MODEL_ROW")) + + if (gtk_selection_data_get_target (selection_data) != gdk_atom_intern_static_string ("GTK_TREE_MODEL_ROW")) return FALSE; - if (selection_data->length < 0) + if (gtk_selection_data_get_length (selection_data) < 0) return FALSE; - trd = (void*) selection_data->data; + trd = (void*) gtk_selection_data_get_data (selection_data); if (tree_model) *tree_model = trd->model; |