]> err.no Git - mapper/commitdiff
Re-order the category list items. Ellipsize description.
authorKaj-Michael Lang <milang@onion.tal.org>
Thu, 10 Jan 2008 12:45:27 +0000 (14:45 +0200)
committerKaj-Michael Lang <milang@onion.tal.org>
Thu, 10 Jan 2008 12:45:27 +0000 (14:45 +0200)
src/poi-gui.c

index 73a2de2e6e5a52494ceddd4d3ac258b040c7d291..309116a87a92f347395c27771a8221dd5f051c92 100644 (file)
@@ -386,11 +386,11 @@ gtk_tree_view_set_headers_visible(GTK_TREE_VIEW(tree_view), TRUE);
 renderer = gtk_cell_renderer_text_new();
 column = gtk_tree_view_column_new_with_attributes(_("ID"), renderer, "text", CAT_ID, NULL);
 gtk_tree_view_append_column(GTK_TREE_VIEW(tree_view), column);
-gtk_tree_view_column_set_max_width(column, 1);
 
 renderer = gtk_cell_renderer_toggle_new();
 g_signal_connect(renderer, "toggled", G_CALLBACK(category_toggled_cb), store);
 column = gtk_tree_view_column_new_with_attributes(_("Enabled"), renderer, "active", CAT_ENABLED, NULL);
+gtk_tree_view_column_set_max_width(column, 32);
 gtk_tree_view_append_column(GTK_TREE_VIEW(tree_view), column);
 gtk_tree_view_column_set_sort_column_id (column, CAT_ENABLED);
 
@@ -406,13 +406,14 @@ gtk_tree_view_append_column(GTK_TREE_VIEW(tree_view), column);
 gtk_tree_view_column_set_sort_column_id (column, CAT_LABEL);
 
 renderer = gtk_cell_renderer_text_new();
-column = gtk_tree_view_column_new_with_attributes(_("Description"), renderer, "text", CAT_DESC, NULL);
+column = gtk_tree_view_column_new_with_attributes(_("# POIs"), renderer, "text", CAT_POI_CNT, NULL);
 gtk_tree_view_append_column(GTK_TREE_VIEW(tree_view), column);
+gtk_tree_view_column_set_sort_column_id (column, CAT_POI_CNT);
 
 renderer = gtk_cell_renderer_text_new();
-column = gtk_tree_view_column_new_with_attributes(_("# POIs"), renderer, "text", CAT_POI_CNT, NULL);
+g_object_set(G_OBJECT(renderer), "ellipsize", PANGO_ELLIPSIZE_END, NULL);
+column = gtk_tree_view_column_new_with_attributes(_("Description"), renderer, "text", CAT_DESC, NULL);
 gtk_tree_view_append_column(GTK_TREE_VIEW(tree_view), column);
-gtk_tree_view_column_set_sort_column_id (column, CAT_POI_CNT);
 
 gtk_window_set_default_size(GTK_WINDOW(dialog), 500, 300);