[gtksourceview/gnome-3-20] gutter: change event param type of redraw_for_window()



commit 2b099418cf9e9ac4e9bca8c7d3a79367ea08a866
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Fri Jun 10 13:39:19 2016 +0200

    gutter: change event param type of redraw_for_window()
    
    This should fix a warning on ARM:
    https://bugzilla.gnome.org/show_bug.cgi?id=767279

 gtksourceview/gtksourcegutter.c |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/gtksourceview/gtksourcegutter.c b/gtksourceview/gtksourcegutter.c
index 2e00b86..507a019 100644
--- a/gtksourceview/gtksourcegutter.c
+++ b/gtksourceview/gtksourcegutter.c
@@ -1447,17 +1447,17 @@ renderer_query_activatable (GtkSourceGutter *gutter,
 
 static gboolean
 redraw_for_window (GtkSourceGutter *gutter,
-                   GdkEventAny     *event,
-                   gboolean         act_on_window,
-                   gint             x,
-                   gint             y)
+                  GdkEvent        *event,
+                  gboolean         act_on_window,
+                  gint             x,
+                  gint             y)
 {
        Renderer *at_x = NULL;
        gint start = 0;
        GList *item;
        gboolean redraw;
 
-       if (event->window != get_window (gutter) && act_on_window)
+       if (event->any.window != get_window (gutter) && act_on_window)
        {
                return FALSE;
        }
@@ -1486,7 +1486,7 @@ redraw_for_window (GtkSourceGutter *gutter,
                        }
                        else if (renderer_query_activatable (gutter,
                                                             renderer,
-                                                            (GdkEvent *)event,
+                                                            event,
                                                             x,
                                                             y,
                                                             NULL,
@@ -1518,7 +1518,7 @@ on_view_motion_notify_event (GtkSourceView    *view,
                              GtkSourceGutter  *gutter)
 {
        return redraw_for_window (gutter,
-                                 (GdkEventAny *)event,
+                                 (GdkEvent *)event,
                                  TRUE,
                                  (gint)event->x,
                                  (gint)event->y);
@@ -1530,7 +1530,7 @@ on_view_enter_notify_event (GtkSourceView     *view,
                             GtkSourceGutter   *gutter)
 {
        return redraw_for_window (gutter,
-                                 (GdkEventAny *)event,
+                                 (GdkEvent *)event,
                                  TRUE,
                                  (gint)event->x,
                                  (gint)event->y);
@@ -1542,7 +1542,7 @@ on_view_leave_notify_event (GtkSourceView     *view,
                             GtkSourceGutter   *gutter)
 {
        return redraw_for_window (gutter,
-                                 (GdkEventAny *)event,
+                                 (GdkEvent *)event,
                                  FALSE,
                                  (gint)event->x,
                                  (gint)event->y);


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