diff options
author | Benjamin Otte <otte@redhat.com> | 2019-04-15 04:19:28 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2019-04-15 14:38:23 +0200 |
commit | 8ad38e5ae578e082a81bd726af537762a4ae2b4d (patch) | |
tree | 77f966b070fe0fcb97660d76d29c8ca6e3573a52 /gtk/gtkmenu.c | |
parent | 0cd29466760fdf95f5c7dcaae9d9b14630f40149 (diff) | |
download | gtk+-8ad38e5ae578e082a81bd726af537762a4ae2b4d.tar.gz |
menu: Remove unused function parameter
The parameter was only ever set to TRUE.
And to make matters even more fun, the function didn't ever look
at the parameter.
Diffstat (limited to 'gtk/gtkmenu.c')
-rw-r--r-- | gtk/gtkmenu.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/gtk/gtkmenu.c b/gtk/gtkmenu.c index abfb116269..820fcdd9c7 100644 --- a/gtk/gtkmenu.c +++ b/gtk/gtkmenu.c @@ -246,8 +246,7 @@ static void gtk_menu_real_insert (GtkMenuShell *menu_shell, static void gtk_menu_handle_scrolling (GtkMenu *menu, gint event_x, gint event_y, - gboolean enter, - gboolean motion); + gboolean enter); static gboolean gtk_menu_focus (GtkWidget *widget, GtkDirectionType direction); static gint gtk_menu_get_popup_delay (GtkMenuShell *menu_shell); @@ -2761,7 +2760,7 @@ gtk_menu_motion (GtkEventController *controller, if (priv->ignore_button_release) priv->ignore_button_release = FALSE; - gtk_menu_handle_scrolling (GTK_MENU (menu_item), event->x_root, event->y_root, TRUE, TRUE); + gtk_menu_handle_scrolling (GTK_MENU (menu_item), event->x_root, event->y_root, TRUE); } /*We received the event for one of two reasons: @@ -2912,8 +2911,7 @@ static void gtk_menu_handle_scrolling (GtkMenu *menu, gint x, gint y, - gboolean enter, - gboolean motion) + gboolean enter) { GtkMenuPrivate *priv = menu->priv; GtkMenuShell *menu_shell; @@ -3088,7 +3086,7 @@ gtk_menu_enter (GtkEventController *controller, if (!menu_shell->priv->ignore_enter) gtk_menu_handle_scrolling (GTK_MENU (user_data), - event->x_root, event->y_root, TRUE, TRUE); + event->x_root, event->y_root, TRUE); } } @@ -3117,7 +3115,7 @@ gtk_menu_leave (GtkEventController *controller, source_device = gdk_event_get_source_device ((GdkEvent *) event); if (gdk_device_get_source (source_device) != GDK_SOURCE_TOUCHSCREEN) - gtk_menu_handle_scrolling (menu, event->x_root, event->y_root, FALSE, TRUE); + gtk_menu_handle_scrolling (menu, event->x_root, event->y_root, FALSE); } static gboolean |