diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-09-04 15:15:46 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-09-04 15:15:46 -0700 |
commit | 5c6aa56ff1fcf4b92b0bc56792a82e1ef609ea60 (patch) | |
tree | e18c4fcb25721acbb7fcfaa2511d4c1a79017672 | |
parent | d8cca5bed3b877655555930bc2f6f6f74503b455 (diff) | |
parent | 5f7835a3913ba4b6e2bf24b7d7f19e277cd40a07 (diff) | |
download | subsurface-5c6aa56ff1fcf4b92b0bc56792a82e1ef609ea60.tar.gz |
Merge branch 'more-divelist-goodness' of https://github.com/nathansamson/diveclog
* 'more-divelist-goodness' of https://github.com/nathansamson/diveclog:
Right align the numbers
-rw-r--r-- | divelist.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/divelist.c b/divelist.c index 1970b38ab..24eec8ce0 100644 --- a/divelist.c +++ b/divelist.c @@ -97,17 +97,21 @@ GtkWidget *create_dive_list(void) col = gtk_tree_view_column_new(); gtk_tree_view_column_set_title(col, "ft"); gtk_tree_view_column_set_sort_column_id(col, 3); - gtk_tree_view_column_pack_start(col, renderer, TRUE); + gtk_tree_view_column_pack_start(col, renderer, FALSE); gtk_tree_view_column_add_attribute(col, renderer, "text", 2); gtk_tree_view_append_column(GTK_TREE_VIEW(tree_view), col); + gtk_object_set(GTK_OBJECT(renderer), "alignment", PANGO_ALIGN_RIGHT, NULL); + gtk_cell_renderer_set_alignment(GTK_CELL_RENDERER(renderer), 1.0, 0.5); renderer = gtk_cell_renderer_text_new(); col = gtk_tree_view_column_new(); gtk_tree_view_column_set_title(col, "min"); gtk_tree_view_column_set_sort_column_id(col, 5); - gtk_tree_view_column_pack_start(col, renderer, TRUE); + gtk_tree_view_column_pack_start(col, renderer, FALSE); gtk_tree_view_column_add_attribute(col, renderer, "text", 4); gtk_tree_view_append_column(GTK_TREE_VIEW(tree_view), col); + gtk_object_set(GTK_OBJECT(renderer), "alignment", PANGO_ALIGN_RIGHT, NULL); + gtk_cell_renderer_set_alignment(GTK_CELL_RENDERER(renderer), 1.0, 0.5); g_object_set(G_OBJECT(tree_view), "headers-visible", TRUE, "search-column", 0, |