[maemo-commits] [maemo-commits] r17001 - projects/haf/branches/hildon-fm/fremantle/hildon-fm
From: subversion at stage.maemo.org subversion at stage.maemo.orgDate: Thu Dec 18 11:42:51 EET 2008
- Previous message: [maemo-commits] r17000 - in projects/haf/trunk/hildon-thumbnail: . daemon
- Next message: [maemo-commits] r17002 - in projects/haf/branches/hildon-fm/fremantle: . debian hildon-fm
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Author: yangli Date: 2008-12-18 11:42:50 +0200 (Thu, 18 Dec 2008) New Revision: 17001 Modified: projects/haf/branches/hildon-fm/fremantle/hildon-fm/hildon-file-chooser-dialog.c Log: some changes for testing Modified: projects/haf/branches/hildon-fm/fremantle/hildon-fm/hildon-file-chooser-dialog.c =================================================================== --- projects/haf/branches/hildon-fm/fremantle/hildon-fm/hildon-file-chooser-dialog.c 2008-12-18 09:05:13 UTC (rev 17000) +++ projects/haf/branches/hildon-fm/fremantle/hildon-fm/hildon-file-chooser-dialog.c 2008-12-18 09:42:50 UTC (rev 17001) @@ -2179,22 +2179,18 @@ { GtkTreeIter iter; GtkTreeIter cur_iter; - char *path = NULL; g_return_if_fail(HILDON_IS_FILE_CHOOSER_DIALOG(data)); HildonFileChooserDialogPrivate *priv = HILDON_FILE_CHOOSER_DIALOG(data)->priv; - path = hildon_file_selection_get_current_folder_uri(priv->filetree); - hildon_file_system_model_load_uri(priv->model, path, &cur_iter); + hildon_file_selection_get_current_folder_iter(priv->filetree, &cur_iter); - if(gtk_tree_model_iter_parent(GTK_TREE_MODEL(priv->model), &iter, &cur_iter)){ - hildon_file_selection_set_current_folder_iter(priv->filetree, &iter); - path = hildon_file_selection_get_current_folder_uri(priv->filetree); - hildon_file_system_model_load_uri(priv->model, path, &iter); - cur_iter = iter; - free(path); - } if (gtk_tree_model_iter_parent(GTK_TREE_MODEL(priv->model), &iter, &cur_iter)) { - gtk_widget_set_sensitive(priv->up_button, TRUE); + gtk_widget_set_sensitive(priv->up_button, TRUE); + hildon_file_selection_set_current_folder_iter(priv->filetree, &iter); + cur_iter = iter; + if(!gtk_tree_model_iter_parent(GTK_TREE_MODEL(priv->model), &iter, &cur_iter)){ + gtk_widget_set_sensitive(priv->up_button, FALSE); + } } else { gtk_widget_set_sensitive(priv->up_button, FALSE);
- Previous message: [maemo-commits] r17000 - in projects/haf/trunk/hildon-thumbnail: . daemon
- Next message: [maemo-commits] r17002 - in projects/haf/branches/hildon-fm/fremantle: . debian hildon-fm
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]