[totem] backend: Use GDK_EVENT_PROPAGATE/_STOP constants
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] backend: Use GDK_EVENT_PROPAGATE/_STOP constants
- Date: Tue, 11 Feb 2014 12:41:59 +0000 (UTC)
commit 8b27c039d5fb5d900cafa0527a24fd7271527ef1
Author: Bastien Nocera <hadess hadess net>
Date: Mon Feb 10 19:45:36 2014 +0100
backend: Use GDK_EVENT_PROPAGATE/_STOP constants
instead of TRUE/FALSE.
src/backend/bacon-video-widget.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/backend/bacon-video-widget.c b/src/backend/bacon-video-widget.c
index 0b08543..e431cf4 100644
--- a/src/backend/bacon-video-widget.c
+++ b/src/backend/bacon-video-widget.c
@@ -772,7 +772,7 @@ ignore_event (BaconVideoWidget *bvw,
static gboolean
bacon_video_widget_motion_notify (GtkWidget *widget, GdkEventMotion *event)
{
- gboolean res = FALSE;
+ gboolean res = GDK_EVENT_PROPAGATE;
BaconVideoWidget *bvw = BACON_VIDEO_WIDGET (widget);
GdkDevice *device;
int x, y;
@@ -815,7 +815,7 @@ bacon_video_widget_button_press_or_release (GtkWidget *widget, GdkEventButton *e
translate_coords (widget, event->window, event->x, event->y, &x, &y);
if (ignore_event (bvw, x, y))
- return TRUE;
+ return GDK_EVENT_STOP;
if (event->type != GDK_BUTTON_PRESS &&
event->type != GDK_BUTTON_RELEASE)
@@ -860,11 +860,11 @@ bacon_video_widget_scroll (GtkWidget *widget, GdkEventScroll *event)
translate_coords (widget, event->window, event->x, event->y, &x, &y);
if (ignore_event (bvw, x, y))
- return TRUE;
+ return GDK_EVENT_STOP;
if (GTK_WIDGET_CLASS (parent_class)->scroll_event)
return GTK_WIDGET_CLASS (parent_class)->scroll_event (widget, event);
- return FALSE;
+ return GDK_EVENT_PROPAGATE;
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]