[gtk/readonly-events-1: 5/9] gtk: Stop using GtkEventButton



commit bf8138cab7d6201a5e4399baffb71e1fc458a3ba
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 51427ca6ec..28edcd7a90 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]