[maemo-commits] [maemo-commits] r17003 - projects/haf/branches/hildon-fm/fremantle/hildon-fm

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Thu Dec 18 16:29:46 EET 2008
Author: yangli
Date: 2008-12-18 16:29:42 +0200 (Thu, 18 Dec 2008)
New Revision: 17003

Modified:
   projects/haf/branches/hildon-fm/fremantle/hildon-fm/hildon-file-chooser-dialog.c
Log:
some modifications

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:27:53 UTC (rev 17002)
+++ projects/haf/branches/hildon-fm/fremantle/hildon-fm/hildon-file-chooser-dialog.c	2008-12-18 14:29:42 UTC (rev 17003)
@@ -2228,6 +2228,8 @@
     GtkWidget *eventbox, *label_items;
     GtkSizeGroup *size_group;
     GtkWidget *image = NULL;
+    GtkTreeIter iter;
+    GtkTreeIter cur_iter;
 
     ULOG_INFO("Initializing");
 
@@ -2428,6 +2430,9 @@
 		      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 *
@@ -2481,7 +2486,6 @@
 
     gtk_dialog_set_has_separator(GTK_DIALOG(obj), FALSE);
     hildon_file_chooser_dialog_set_limit(HILDON_FILE_CHOOSER_DIALOG(obj));
-
     return obj;
 }
 


More information about the maemo-commits mailing list