[eog] Remove obsolete GTK+ version check



commit 994f74bf891b639d3a5f53b11e9d113694e3d674
Author: Claudio Saavedra <csaavedra igalia com>
Date:   Thu Jul 23 11:35:24 2009 +0200

    Remove obsolete GTK+ version check
    
    * src/eog-thumb-view.c: (eog_thumb_view_init): Do not check for
    GTK+ version to be at least 2.15.0, since we already depend on
    2.15.1.

 ChangeLog            |    6 ++++++
 src/eog-thumb-view.c |   12 ------------
 2 files changed, 6 insertions(+), 12 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 5240b50..734d64e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-07-23  Claudio Saavedra  <csaavedra igalia com>
+
+	* src/eog-thumb-view.c: (eog_thumb_view_init): Do not check for
+	GTK+ version to be at least 2.15.0, since we already depend on
+	2.15.1.
+
 2009-07-14  Felix Riemann  <friemann gnome org>
 
 	* configure.ac: Post-release version bump.
diff --git a/src/eog-thumb-view.c b/src/eog-thumb-view.c
index c3d3a12..73c9600 100644
--- a/src/eog-thumb-view.c
+++ b/src/eog-thumb-view.c
@@ -497,12 +497,6 @@ thumbview_on_query_tooltip_cb (GtkWidget  *widget,
 static void
 eog_thumb_view_init (EogThumbView *thumbview)
 {
-#if !GTK_CHECK_VERSION (2, 15, 0)
-	const GtkTargetEntry target_table[] = {
-		{"text/uri-list", 0, 0 }
-	};
-#endif
-
 	thumbview->priv = EOG_THUMB_VIEW_GET_PRIVATE (thumbview);
 
 	thumbview->priv->pixbuf_cell = gtk_cell_renderer_pixbuf_new ();
@@ -547,16 +541,10 @@ eog_thumb_view_init (EogThumbView *thumbview)
 	g_signal_connect (G_OBJECT (thumbview), "parent-set",
 			  G_CALLBACK (thumbview_on_parent_set_cb), NULL);
 
-#if GTK_CHECK_VERSION (2, 15, 0)
 	gtk_icon_view_enable_model_drag_source (GTK_ICON_VIEW (thumbview), 0,
 						NULL, 0,
 						GDK_ACTION_COPY);
 	gtk_drag_source_add_uri_targets (GTK_WIDGET (thumbview));
-#else
-	gtk_icon_view_enable_model_drag_source (GTK_ICON_VIEW (thumbview), 0,
-						target_table, G_N_ELEMENTS (target_table),
-						GDK_ACTION_COPY);
-#endif /* GTK >= 2.15.0 */
 
 	g_signal_connect (G_OBJECT (thumbview), "drag-data-get",
 			  G_CALLBACK (thumbview_on_drag_data_get_cb), NULL);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]