[gtk] menu: Remove unused function parameter
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk] menu: Remove unused function parameter
- Date: Mon, 15 Apr 2019 12:40:37 +0000 (UTC)
commit 8ad38e5ae578e082a81bd726af537762a4ae2b4d
Author: Benjamin Otte <otte redhat com>
Date: Mon Apr 15 04:19:28 2019 +0200
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.
gtk/gtkmenu.c | 12 +++++-------
1 file 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]