[maemo-commits] [maemo-commits] r13544 - projects/haf/trunk/hildon-fm/hildon-fm
From: subversion at stage.maemo.org subversion at stage.maemo.orgDate: Fri Aug 31 18:45:50 EEST 2007
- Previous message: [maemo-commits] r13543 - projects/haf/trunk/hildon-application-framework/debian
- Next message: [maemo-commits] r13545 - in projects/haf/trunk/hildon-fm: . debian hildon-fm
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Author: marivoll Date: 2007-08-31 18:45:49 +0300 (Fri, 31 Aug 2007) New Revision: 13544 Modified: projects/haf/trunk/hildon-fm/hildon-fm/hildon-file-system-model.c Log: * hildon-fm/hildon-file-system-model.c (hildon_file_system_model_row_draggable): ask whether the row content is available before allowing DnD on it. Fixes NB65966. Modified: projects/haf/trunk/hildon-fm/hildon-fm/hildon-file-system-model.c =================================================================== --- projects/haf/trunk/hildon-fm/hildon-fm/hildon-file-system-model.c 2007-08-31 15:26:12 UTC (rev 13543) +++ projects/haf/trunk/hildon-fm/hildon-fm/hildon-file-system-model.c 2007-08-31 15:45:49 UTC (rev 13544) @@ -2289,8 +2289,20 @@ static gboolean hildon_file_system_model_row_draggable(GtkTreeDragSource *source, GtkTreePath *path) { + GtkTreeModel *model; + GtkTreeIter iter; + gboolean draggable; + ULOG_DEBUG_F("entered"); - return TRUE; + + model = GTK_TREE_MODEL (source); + gtk_tree_model_get_iter (model, &iter, path); + + gtk_tree_model_get(model, &iter, + HILDON_FILE_SYSTEM_MODEL_COLUMN_IS_AVAILABLE, + &draggable, -1); + + return draggable; } static void hildon_file_system_model_iface_init(GtkTreeModelIface * iface)
- Previous message: [maemo-commits] r13543 - projects/haf/trunk/hildon-application-framework/debian
- Next message: [maemo-commits] r13545 - in projects/haf/trunk/hildon-fm: . debian hildon-fm
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]