[gnome-documents] icon-view: remove unused code



commit 2e039fc00d3e8adbf9d5c16f0aaad441166a2b49
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Fri Mar 16 15:05:58 2012 -0400

    icon-view: remove unused code
    
    Since we set the builtin GtkIconView to SELECTION_NONE, this is not
    needed anymore.

 src/lib/gd-main-icon-view.c |   11 -----------
 1 files changed, 0 insertions(+), 11 deletions(-)
---
diff --git a/src/lib/gd-main-icon-view.c b/src/lib/gd-main-icon-view.c
index a7f98f2..f436e0e 100644
--- a/src/lib/gd-main-icon-view.c
+++ b/src/lib/gd-main-icon-view.c
@@ -43,14 +43,6 @@ G_DEFINE_TYPE_WITH_CODE (GdMainIconView, gd_main_icon_view, GTK_TYPE_ICON_VIEW,
                          G_IMPLEMENT_INTERFACE (GD_TYPE_MAIN_VIEW_GENERIC,
                                                 gd_main_view_generic_iface_init))
 
-static void
-on_icon_selection_changed (GtkIconView *iv,
-                           gpointer user_data)
-{
-  GdMainIconView *self = user_data;
-  g_signal_emit_by_name (self, "view-selection-changed");
-}
-
 static GtkTreePath*
 get_source_row (GdkDragContext *context)
 {
@@ -104,9 +96,6 @@ gd_main_icon_view_constructed (GObject *obj)
                 "margin", VIEW_MARGIN,
                 NULL);
 
-  g_signal_connect (self, "selection-changed",
-                    G_CALLBACK (on_icon_selection_changed), self);
-
   self->priv->pixbuf_cell = cell = gd_toggle_pixbuf_renderer_new ();
   g_object_set (cell,
                 "xalign", 0.5,



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