[gtk/readonly-events-1: 145/149] gtk: Stop using GtkEventButton



commit b2226ea1e3bed86c5b49b507de8ac957b5c184a3
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Feb 20 21:21:45 2020 -0500

    gtk: Stop using GtkEventButton
    
    Same as the previous commit. All events are
    just GdkEvents now.

 gtk/gtkpathbar.c | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/gtk/gtkpathbar.c b/gtk/gtkpathbar.c
index 152efa625b..e9477e349c 100644
--- a/gtk/gtkpathbar.c
+++ b/gtk/gtkpathbar.c
@@ -143,10 +143,10 @@ static void gtk_path_bar_forall                   (GtkContainer     *container,
 static void gtk_path_bar_scroll_up                (GtkPathBar       *path_bar);
 static void gtk_path_bar_scroll_down              (GtkPathBar       *path_bar);
 static gboolean gtk_path_bar_slider_up_defocus    (GtkWidget        *widget,
-                                                  GdkEventButton   *event,
+                                                  GdkEvent         *event,
                                                   GtkPathBar       *path_bar);
 static gboolean gtk_path_bar_slider_down_defocus  (GtkWidget        *widget,
-                                                  GdkEventButton   *event,
+                                                  GdkEvent         *event,
                                                   GtkPathBar       *path_bar);
 static void gtk_path_bar_update_button_appearance (GtkPathBar       *path_bar,
                                                   ButtonData       *button_data,
@@ -864,15 +864,15 @@ gtk_path_bar_scroll_up (GtkPathBar *path_bar)
 }
 
 static gboolean
-gtk_path_bar_slider_up_defocus (GtkWidget      *widget,
-                                GdkEventButton *event,
-                                GtkPathBar     *path_bar)
+gtk_path_bar_slider_up_defocus (GtkWidget  *widget,
+                                GdkEvent   *event,
+                                GtkPathBar *path_bar)
 {
   GtkPathBarPrivate *priv = gtk_path_bar_get_instance_private (path_bar);
   GList *list;
   GList *up_button = NULL;
 
-  if (gdk_event_get_event_type ((GdkEvent *) event) != GDK_FOCUS_CHANGE)
+  if (gdk_event_get_event_type (event) != GDK_FOCUS_CHANGE)
     return FALSE;
 
   for (list = g_list_last (priv->button_list); list; list = list->prev)
@@ -893,15 +893,15 @@ gtk_path_bar_slider_up_defocus (GtkWidget      *widget,
 }
 
 static gboolean
-gtk_path_bar_slider_down_defocus (GtkWidget      *widget,
-                                  GdkEventButton *event,
-                                  GtkPathBar     *path_bar)
+gtk_path_bar_slider_down_defocus (GtkWidget  *widget,
+                                  GdkEvent   *event,
+                                  GtkPathBar *path_bar)
 {
   GtkPathBarPrivate *priv = gtk_path_bar_get_instance_private (path_bar);
   GList *list;
   GList *down_button = NULL;
 
-  if (gdk_event_get_event_type ((GdkEvent *) event) != GDK_FOCUS_CHANGE)
+  if (gdk_event_get_event_type (event) != GDK_FOCUS_CHANGE)
     return FALSE;
 
   for (list = priv->button_list; list; list = list->next)


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