forked from AuroraMiddleware/gtk
gtk: Stop using GtkEventButton
Same as the previous commit. All events are just GdkEvents now.
This commit is contained in:
parent
8823882f97
commit
b2226ea1e3
@ -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_up (GtkPathBar *path_bar);
|
||||||
static void gtk_path_bar_scroll_down (GtkPathBar *path_bar);
|
static void gtk_path_bar_scroll_down (GtkPathBar *path_bar);
|
||||||
static gboolean gtk_path_bar_slider_up_defocus (GtkWidget *widget,
|
static gboolean gtk_path_bar_slider_up_defocus (GtkWidget *widget,
|
||||||
GdkEventButton *event,
|
GdkEvent *event,
|
||||||
GtkPathBar *path_bar);
|
GtkPathBar *path_bar);
|
||||||
static gboolean gtk_path_bar_slider_down_defocus (GtkWidget *widget,
|
static gboolean gtk_path_bar_slider_down_defocus (GtkWidget *widget,
|
||||||
GdkEventButton *event,
|
GdkEvent *event,
|
||||||
GtkPathBar *path_bar);
|
GtkPathBar *path_bar);
|
||||||
static void gtk_path_bar_update_button_appearance (GtkPathBar *path_bar,
|
static void gtk_path_bar_update_button_appearance (GtkPathBar *path_bar,
|
||||||
ButtonData *button_data,
|
ButtonData *button_data,
|
||||||
@ -865,14 +865,14 @@ gtk_path_bar_scroll_up (GtkPathBar *path_bar)
|
|||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
gtk_path_bar_slider_up_defocus (GtkWidget *widget,
|
gtk_path_bar_slider_up_defocus (GtkWidget *widget,
|
||||||
GdkEventButton *event,
|
GdkEvent *event,
|
||||||
GtkPathBar *path_bar)
|
GtkPathBar *path_bar)
|
||||||
{
|
{
|
||||||
GtkPathBarPrivate *priv = gtk_path_bar_get_instance_private (path_bar);
|
GtkPathBarPrivate *priv = gtk_path_bar_get_instance_private (path_bar);
|
||||||
GList *list;
|
GList *list;
|
||||||
GList *up_button = NULL;
|
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;
|
return FALSE;
|
||||||
|
|
||||||
for (list = g_list_last (priv->button_list); list; list = list->prev)
|
for (list = g_list_last (priv->button_list); list; list = list->prev)
|
||||||
@ -894,14 +894,14 @@ gtk_path_bar_slider_up_defocus (GtkWidget *widget,
|
|||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
gtk_path_bar_slider_down_defocus (GtkWidget *widget,
|
gtk_path_bar_slider_down_defocus (GtkWidget *widget,
|
||||||
GdkEventButton *event,
|
GdkEvent *event,
|
||||||
GtkPathBar *path_bar)
|
GtkPathBar *path_bar)
|
||||||
{
|
{
|
||||||
GtkPathBarPrivate *priv = gtk_path_bar_get_instance_private (path_bar);
|
GtkPathBarPrivate *priv = gtk_path_bar_get_instance_private (path_bar);
|
||||||
GList *list;
|
GList *list;
|
||||||
GList *down_button = NULL;
|
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;
|
return FALSE;
|
||||||
|
|
||||||
for (list = priv->button_list; list; list = list->next)
|
for (list = priv->button_list; list; list = list->next)
|
||||||
|
Loading…
Reference in New Issue
Block a user