aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-page-menu-action.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ephy-page-menu-action.c')
-rw-r--r--src/ephy-page-menu-action.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ephy-page-menu-action.c b/src/ephy-page-menu-action.c
index e50ceab2d..2b68708cf 100644
--- a/src/ephy-page-menu-action.c
+++ b/src/ephy-page-menu-action.c
@@ -76,7 +76,7 @@ visible_cb (GtkWidget *menu, GParamSpec *pspec, GtkWidget *button)
"active-menu");
}
-static void
+static gboolean
button_press_cb (GtkWidget *button, GdkEventButton *event, EphyPageMenuAction *action)
{
GtkWidget *menu;
@@ -91,7 +91,7 @@ button_press_cb (GtkWidget *button, GdkEventButton *event, EphyPageMenuAction *a
button = GTK_WIDGET (l->data);
}
- g_return_if_fail (GTK_IS_BUTTON (button));
+ g_return_val_if_fail (GTK_IS_BUTTON (button), FALSE);
if (!action->priv->menu) {
window = ephy_window_action_get_window (EPHY_WINDOW_ACTION (action));
@@ -114,6 +114,8 @@ button_press_cb (GtkWidget *button, GdkEventButton *event, EphyPageMenuAction *a
NULL, NULL,
(GtkMenuPositionFunc)menu_position_func, button,
event_button, event_time);
+
+ return TRUE;
}
static void