[maemo-commits] [maemo-commits] r17004 - projects/haf/branches/hildon-fm/fremantle/hildon-fm
From: subversion at stage.maemo.org subversion at stage.maemo.orgDate: Thu Dec 18 18:40:41 EET 2008
- Previous message: [maemo-commits] r17003 - projects/haf/branches/hildon-fm/fremantle/hildon-fm
- Next message: [maemo-commits] r17005 - projects/haf/branches/hildon-fm/fremantle/hildon-fm
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Author: yangli Date: 2008-12-18 18:40:22 +0200 (Thu, 18 Dec 2008) New Revision: 17004 Modified: projects/haf/branches/hildon-fm/fremantle/hildon-fm/hildon-file-chooser-dialog.c Log: mistake correction 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 14:29:42 UTC (rev 17003) +++ projects/haf/branches/hildon-fm/fremantle/hildon-fm/hildon-file-chooser-dialog.c 2008-12-18 16:40:22 UTC (rev 17004) @@ -2228,8 +2228,6 @@ GtkWidget *eventbox, *label_items; GtkSizeGroup *size_group; GtkWidget *image = NULL; - GtkTreeIter iter; - GtkTreeIter cur_iter; ULOG_INFO("Initializing"); @@ -2430,9 +2428,6 @@ G_CALLBACK (on_location_hw_enter_pressed), self); gtk_dialog_set_default_response(GTK_DIALOG(self), GTK_RESPONSE_OK); - gtk_tree_model_get_iter_first(GTK_TREE_MODEL(priv->model), &iter); - hildon_file_selection_set_current_folder_iter(priv->filetree, &cur_iter); - gtk_widget_set_sensitive(priv->up_button, FALSE); } static GObject * @@ -2443,6 +2438,8 @@ { GObject *obj; HildonFileChooserDialogPrivate *priv; + GtkTreeIter iter; + GtkTreeIter cur_iter; obj = G_OBJECT_CLASS(hildon_file_chooser_dialog_parent_class)-> @@ -2486,6 +2483,9 @@ gtk_dialog_set_has_separator(GTK_DIALOG(obj), FALSE); hildon_file_chooser_dialog_set_limit(HILDON_FILE_CHOOSER_DIALOG(obj)); + gtk_tree_model_get_iter_first(GTK_TREE_MODEL(priv->model), &iter); + hildon_file_selection_set_current_folder_iter(priv->filetree, &iter); + gtk_widget_set_sensitive(priv->up_button, FALSE); return obj; }
- Previous message: [maemo-commits] r17003 - projects/haf/branches/hildon-fm/fremantle/hildon-fm
- Next message: [maemo-commits] r17005 - projects/haf/branches/hildon-fm/fremantle/hildon-fm
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]