summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-09-19 22:01:55 -0700
committerGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-09-19 22:01:55 -0700
commitd06404483390e90815811de028e705bad7eac97d (patch)
treecb243459aeff87e69b99f4996885631407d31f29
parentd3feb78df5278f0f132875c60f33fdb2168087eb (diff)
downloadsubsurface-d06404483390e90815811de028e705bad7eac97d.tar.gz
Hacky hard-coded font for dive list entries
This really is too wrong for words, but I do think the dive list may look better with a smaller font. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r--divelist.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/divelist.c b/divelist.c
index b7cc0a311..53d9bdf71 100644
--- a/divelist.c
+++ b/divelist.c
@@ -421,6 +421,7 @@ struct DiveList dive_list_create(void)
{
struct DiveList dive_list;
GtkTreeSelection *selection;
+ PangoFontDescription *font_desc = pango_font_description_from_string("sans 8");
dive_list.model = gtk_list_store_new(DIVELIST_COLUMNS,
G_TYPE_INT, /* index */
@@ -434,6 +435,9 @@ struct DiveList dive_list_create(void)
G_TYPE_INT /* SAC */
);
dive_list.tree_view = gtk_tree_view_new_with_model(GTK_TREE_MODEL(dive_list.model));
+ gtk_widget_modify_font(dive_list.tree_view, font_desc);
+ pango_font_description_free(font_desc);
+
selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(dive_list.tree_view));
gtk_tree_selection_set_mode(GTK_TREE_SELECTION(selection), GTK_SELECTION_BROWSE);