[gnome-builder] minimap: remove double-arrow cursor from overlay box



commit d97a261256621bcd00f654e850ba6d4e37285a19
Author: Christian Hergert <christian hergert me>
Date:   Sat Apr 25 01:48:19 2015 -0700

    minimap: remove double-arrow cursor from overlay box
    
    This looked kind of tacky. Also, none of the gtk+ scrollbars change
    the cursor, so it doesn't even follow convention.

 libide/ide-source-map.c |   30 ------------------------------
 1 files changed, 0 insertions(+), 30 deletions(-)
---
diff --git a/libide/ide-source-map.c b/libide/ide-source-map.c
index fe7fe0e..fea34b8 100644
--- a/libide/ide-source-map.c
+++ b/libide/ide-source-map.c
@@ -531,31 +531,6 @@ ide_source_map__child_view_realize_after (GtkWidget *widget,
   ide_source_map__child_view_state_flags_changed (widget, 0, child_view);
 }
 
-static void
-ide_source_map__overlay_box_realize_after (IdeSourceMap *self,
-                                           GtkEventBox  *overlay_box)
-{
-  GdkCursor *cursor;
-  GdkDisplay *display;
-  GdkWindow *window;
-
-  g_assert (IDE_IS_SOURCE_MAP (self));
-  g_assert (GTK_IS_EVENT_BOX (overlay_box));
-
-  window = gtk_widget_get_window (GTK_WIDGET (overlay_box));
-  g_assert (window != NULL);
-
-  display = gdk_window_get_display (window);
-  g_assert (display != NULL);
-
-  cursor = gdk_cursor_new_for_display (display, GDK_DOUBLE_ARROW);
-  g_assert (cursor != NULL);
-
-  gdk_window_set_cursor (window, cursor);
-
-  g_clear_object (&cursor);
-}
-
 static gboolean
 ide_source_map__overlay_box_button_press_event (IdeSourceMap   *self,
                                                 GdkEventButton *event,
@@ -854,11 +829,6 @@ ide_source_map_init (IdeSourceMap *self)
                                     "width-request", 100,
                                     NULL);
   g_signal_connect_object (self->overlay_box,
-                           "realize",
-                           G_CALLBACK (ide_source_map__overlay_box_realize_after),
-                           self,
-                           G_CONNECT_SWAPPED | G_CONNECT_AFTER);
-  g_signal_connect_object (self->overlay_box,
                            "button-press-event",
                            G_CALLBACK (ide_source_map__overlay_box_button_press_event),
                            self,


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