diff options
author | Stefano Karapetsas <[email protected]> | 2013-07-25 12:50:07 +0200 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2013-07-25 12:50:07 +0200 |
commit | 9414c75602ba6f099d39275b9c09db656f27a59e (patch) | |
tree | 7ec6438367425aa75bc9b9839c5c6cebf72c3113 /src/file-manager | |
parent | 73325c232756ace088ae3f8d64455af2c35a5381 (diff) | |
download | caja-9414c75602ba6f099d39275b9c09db656f27a59e.tar.bz2 caja-9414c75602ba6f099d39275b9c09db656f27a59e.tar.xz |
Fixes for GTK3 support
Diffstat (limited to 'src/file-manager')
-rw-r--r-- | src/file-manager/fm-list-view.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/file-manager/fm-list-view.c b/src/file-manager/fm-list-view.c index 72e3f55c..c92e0c12 100644 --- a/src/file-manager/fm-list-view.c +++ b/src/file-manager/fm-list-view.c @@ -1739,7 +1739,14 @@ create_and_set_up_tree_view (FMListView *view) view->details->file_name_column = gtk_tree_view_column_new (); gtk_tree_view_column_set_expand (view->details->file_name_column, TRUE); +#if GTK_CHECK_VERSION (3, 0, 0) + GtkStyleContext *context; + context = gtk_widget_get_style_context (GTK_WIDGET(view)); + font_size = PANGO_PIXELS (pango_font_description_get_size ( + gtk_style_context_get_font (context, GTK_STATE_FLAG_NORMAL))); +#else font_size = PANGO_PIXELS (pango_font_description_get_size (GTK_WIDGET(view)->style->font_desc)); +#endif gtk_tree_view_column_set_min_width (view->details->file_name_column, 20*font_size); g_object_ref_sink (view->details->file_name_column); view->details->file_name_column_num = column_num; |