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.
This commit is contained in:
Benjamin Otte 2019-04-15 04:19:28 +02:00
parent 0cd2946676
commit 8ad38e5ae5

View File

@ -246,8 +246,7 @@ static void gtk_menu_real_insert (GtkMenuShell *menu_shell,
static void gtk_menu_handle_scrolling (GtkMenu *menu, static void gtk_menu_handle_scrolling (GtkMenu *menu,
gint event_x, gint event_x,
gint event_y, gint event_y,
gboolean enter, gboolean enter);
gboolean motion);
static gboolean gtk_menu_focus (GtkWidget *widget, static gboolean gtk_menu_focus (GtkWidget *widget,
GtkDirectionType direction); GtkDirectionType direction);
static gint gtk_menu_get_popup_delay (GtkMenuShell *menu_shell); static gint gtk_menu_get_popup_delay (GtkMenuShell *menu_shell);
@ -2761,7 +2760,7 @@ gtk_menu_motion (GtkEventController *controller,
if (priv->ignore_button_release) if (priv->ignore_button_release)
priv->ignore_button_release = FALSE; 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: /*We received the event for one of two reasons:
@ -2912,8 +2911,7 @@ static void
gtk_menu_handle_scrolling (GtkMenu *menu, gtk_menu_handle_scrolling (GtkMenu *menu,
gint x, gint x,
gint y, gint y,
gboolean enter, gboolean enter)
gboolean motion)
{ {
GtkMenuPrivate *priv = menu->priv; GtkMenuPrivate *priv = menu->priv;
GtkMenuShell *menu_shell; GtkMenuShell *menu_shell;
@ -3088,7 +3086,7 @@ gtk_menu_enter (GtkEventController *controller,
if (!menu_shell->priv->ignore_enter) if (!menu_shell->priv->ignore_enter)
gtk_menu_handle_scrolling (GTK_MENU (user_data), 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); source_device = gdk_event_get_source_device ((GdkEvent *) event);
if (gdk_device_get_source (source_device) != GDK_SOURCE_TOUCHSCREEN) 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 static gboolean