r1751 - trunk/src/target/OM-2007/applications/openmoko-rssreader/src
zecke at sita.openmoko.org
zecke at sita.openmoko.org
Sat Apr 14 01:39:28 CEST 2007
Author: zecke
Date: 2007-04-14 01:39:27 +0200 (Sat, 14 Apr 2007)
New Revision: 1751
Modified:
trunk/src/target/OM-2007/applications/openmoko-rssreader/src/main.c
Log:
openmoko-rssreader: Change sort order, make the treeview grab focus
Change the sort order to make "Today" be at
the top of the list by default
Make the Treeview grab the focus by default
Modified: trunk/src/target/OM-2007/applications/openmoko-rssreader/src/main.c
===================================================================
--- trunk/src/target/OM-2007/applications/openmoko-rssreader/src/main.c 2007-04-13 23:35:07 UTC (rev 1750)
+++ trunk/src/target/OM-2007/applications/openmoko-rssreader/src/main.c 2007-04-13 23:39:27 UTC (rev 1751)
@@ -178,7 +178,7 @@
* Allow sorting of the base model
*/
data->sort_model = GTK_TREE_MODEL_SORT(gtk_tree_model_sort_new_with_model( GTK_TREE_MODEL(data->filter_model) ));
- gtk_tree_sortable_set_sort_column_id( GTK_TREE_SORTABLE(data->sort_model), RSS_READER_COLUMN_DATE, GTK_SORT_ASCENDING );
+ gtk_tree_sortable_set_sort_column_id( GTK_TREE_SORTABLE(data->sort_model), RSS_READER_COLUMN_DATE, GTK_SORT_DESCENDING );
gtk_tree_sortable_set_sort_func ( GTK_TREE_SORTABLE(data->sort_model), RSS_READER_COLUMN_DATE, rss_sort_dates, NULL, NULL);
data->treeView = MOKO_TREE_VIEW(moko_tree_view_new_with_model(GTK_TREE_MODEL(data->sort_model)));
@@ -303,6 +303,7 @@
moko_menu_box_set_active_filter( data->menubox, _("All") );
gtk_widget_show_all( GTK_WIDGET(data->window) );
+ gtk_widget_grab_focus (GTK_WIDGET(data->treeView));
gtk_main();
gdk_threads_leave();
More information about the commitlog
mailing list