r1472 - trunk/src/target/OM-2007/applications/openmoko-rssreader/src

zecke at sita.openmoko.org zecke at sita.openmoko.org
Thu Mar 22 02:05:35 CET 2007


Author: zecke
Date: 2007-03-22 02:05:35 +0100 (Thu, 22 Mar 2007)
New Revision: 1472

Modified:
   trunk/src/target/OM-2007/applications/openmoko-rssreader/src/main.c
Log:
openmoko-rssreader: At least stop the TreeView columns from growing
    Give 1/2 of the space to Subject and the other to the Date. Normally
    one would give more space to the subject and less to the date but this
    is not as easy.


Modified: trunk/src/target/OM-2007/applications/openmoko-rssreader/src/main.c
===================================================================
--- trunk/src/target/OM-2007/applications/openmoko-rssreader/src/main.c	2007-03-22 01:05:10 UTC (rev 1471)
+++ trunk/src/target/OM-2007/applications/openmoko-rssreader/src/main.c	2007-03-22 01:05:35 UTC (rev 1472)
@@ -86,10 +86,14 @@
     GtkTreeViewColumn *column;
     ren = GTK_CELL_RENDERER(gtk_cell_renderer_text_new());
     column = GTK_TREE_VIEW_COLUMN(gtk_tree_view_column_new_with_attributes( _("Subject"), ren, "text", RSS_READER_COLUMN_SUBJECT, NULL));
+    gtk_tree_view_column_set_expand( column, TRUE );
+    gtk_tree_view_column_set_sizing( column, GTK_TREE_VIEW_COLUMN_FIXED );
     moko_tree_view_append_column( MOKO_TREE_VIEW(data->treeView), column );
 
     ren = GTK_CELL_RENDERER(gtk_cell_renderer_text_new());
     column = GTK_TREE_VIEW_COLUMN(gtk_tree_view_column_new_with_attributes( _("Date"), ren, "text", RSS_READER_COLUMN_DATE, NULL));
+    gtk_tree_view_column_set_expand( column, TRUE );
+    gtk_tree_view_column_set_sizing( column, GTK_TREE_VIEW_COLUMN_FIXED );
     moko_tree_view_append_column( MOKO_TREE_VIEW(data->treeView), column );
 
     /*





More information about the commitlog mailing list