summaryrefslogtreecommitdiff
path: root/gtk/gtkpathbar.c
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2017-08-25 16:46:01 +0200
committerCarlos Garnacho <carlosg@gnome.org>2017-09-19 18:39:02 +0200
commitc48a196d77d6a74429f8bdff7f189b687f42a896 (patch)
tree9b57de2a89d9c0d53fbec961b32ee65904cb088c /gtk/gtkpathbar.c
parent75d81757151d654b1d29ee66e5d123d82eb91029 (diff)
downloadgtk+-c48a196d77d6a74429f8bdff7f189b687f42a896.tar.gz
filechooser: Update to using GdkEvent API
Diffstat (limited to 'gtk/gtkpathbar.c')
-rw-r--r--gtk/gtkpathbar.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/gtk/gtkpathbar.c b/gtk/gtkpathbar.c
index 4e3c37fc2f..28c3e843a5 100644
--- a/gtk/gtkpathbar.c
+++ b/gtk/gtkpathbar.c
@@ -942,13 +942,13 @@ gtk_path_bar_stop_scrolling (GtkPathBar *path_bar)
static gboolean
gtk_path_bar_slider_up_defocus (GtkWidget *widget,
- GdkEventButton *event,
- GtkPathBar *path_bar)
+ GdkEventButton *event,
+ GtkPathBar *path_bar)
{
GList *list;
GList *up_button = NULL;
- if (event->type != GDK_FOCUS_CHANGE)
+ if (gdk_event_get_event_type ((GdkEvent *) event) != GDK_FOCUS_CHANGE)
return FALSE;
for (list = g_list_last (path_bar->priv->button_list); list; list = list->prev)
@@ -970,13 +970,13 @@ gtk_path_bar_slider_up_defocus (GtkWidget *widget,
static gboolean
gtk_path_bar_slider_down_defocus (GtkWidget *widget,
- GdkEventButton *event,
- GtkPathBar *path_bar)
+ GdkEventButton *event,
+ GtkPathBar *path_bar)
{
GList *list;
GList *down_button = NULL;
- if (event->type != GDK_FOCUS_CHANGE)
+ if (gdk_event_get_event_type ((GdkEvent *) event) != GDK_FOCUS_CHANGE)
return FALSE;
for (list = path_bar->priv->button_list; list; list = list->next)
@@ -1001,7 +1001,8 @@ gtk_path_bar_slider_button_press (GtkWidget *widget,
GdkEventButton *event,
GtkPathBar *path_bar)
{
- if (event->type != GDK_BUTTON_PRESS || event->button != GDK_BUTTON_PRIMARY)
+ if (gdk_event_get_event_type ((GdkEvent *) event) != GDK_BUTTON_PRESS ||
+ event->button != GDK_BUTTON_PRIMARY)
return FALSE;
path_bar->priv->ignore_click = FALSE;
@@ -1036,7 +1037,7 @@ gtk_path_bar_slider_button_release (GtkWidget *widget,
GdkEventButton *event,
GtkPathBar *path_bar)
{
- if (event->type != GDK_BUTTON_RELEASE)
+ if (gdk_event_get_event_type ((GdkEvent *) event) != GDK_BUTTON_RELEASE)
return FALSE;
path_bar->priv->ignore_click = TRUE;