summaryrefslogtreecommitdiff
path: root/thunar/thunar-details-view.c
diff options
context:
space:
mode:
authorJannis Pohlmann <jannis@xfce.org>2009-08-21 17:47:20 +0200
committerJannis Pohlmann <jannis@xfce.org>2009-08-21 17:47:20 +0200
commit1f5eed407c762bf7ca118e377f91c6cb1e63eb31 (patch)
treed0c1b60db807e336b28ccaf8edc6d2bfeff68e76 /thunar/thunar-details-view.c
parent116819a0d9f258df20c76cd336723628a3b5798b (diff)
downloadthunar-1f5eed407c762bf7ca118e377f91c6cb1e63eb31.tar.gz
Merge the migration-to-gio branch into master.
I'm 100% sure I can implement all ThunarVFS thumbnailers on top of tumbler in time for the Xfce 4.8 release. Same about the volume monitor backend for GIO to avoid a GVfs dependency. So why not merge the GIO branch now? Not much to say about this merge. It replaces ThunarVFS with GIO inside Thunar and Thunarx, something I've been working on over the past few months. It currently requires GVfs for volume monitoring and also (optionally) depends on tumbler for thumbnail generation. Enjoy. All .po files are going to be updated in the next commit. Conflicts: ChangeLog INSTALL acinclude.m4 configure.in.in plugins/thunar-wallpaper/twp-provider.c po-doc/ChangeLog po/ChangeLog po/LINGUAS thunar-vfs/thunar-vfs-1.pc.in thunar-vfs/thunar-vfs-thumb.c thunar/thunar-templates-action.c
Diffstat (limited to 'thunar/thunar-details-view.c')
-rw-r--r--thunar/thunar-details-view.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/thunar/thunar-details-view.c b/thunar/thunar-details-view.c
index b626f42c..7a308710 100644
--- a/thunar/thunar-details-view.c
+++ b/thunar/thunar-details-view.c
@@ -250,9 +250,7 @@ thunar_details_view_init (ThunarDetailsView *details_view)
gtk_tree_view_set_enable_search (GTK_TREE_VIEW (tree_view), TRUE);
/* enable rubberbanding (if supported) */
-#if GTK_CHECK_VERSION(2,9,0)
gtk_tree_view_set_rubber_banding (GTK_TREE_VIEW (tree_view), TRUE);
-#endif
/* connect to the default column model */
details_view->column_model = thunar_column_model_get_default ();
@@ -575,11 +573,7 @@ thunar_details_view_get_visible_range (ThunarStandardView *standard_view,
{
_thunar_return_val_if_fail (THUNAR_IS_DETAILS_VIEW (standard_view), FALSE);
-#if GTK_CHECK_VERSION(2,8,0)
return gtk_tree_view_get_visible_range (GTK_TREE_VIEW (GTK_BIN (standard_view)->child), start_path, end_path);
-#else
- return FALSE;
-#endif
}
@@ -809,22 +803,8 @@ thunar_details_view_zoom_level_changed (ThunarDetailsView *details_view)
/* determine the list of tree view columns */
for (column = 0; column < THUNAR_N_VISIBLE_COLUMNS; ++column)
{
-#if GTK_CHECK_VERSION(2,8,0)
/* just queue a resize on this column */
gtk_tree_view_column_queue_resize (details_view->columns[column]);
-#else
- /* determine the renderers for this column */
- GList *renderers = gtk_tree_view_column_get_cell_renderers (details_view->columns[column]);
- if (G_LIKELY (renderers != NULL))
- {
- /* this is really an awfull hack, but it works! It forces GtkTreeView to recalculate
- * the dimensions of this column, and that's all that matters. We don't use it with
- * newer Gtk+ versions either, so what the f*ck...
- */
- gtk_tree_view_column_set_cell_data_func (details_view->columns[column], renderers->data, NULL, NULL, NULL);
- g_list_free (renderers);
- }
-#endif
}
}