2007-10-03 Emmanuele Bassi <ebassi@openedhand.com>
* tests/test-behave.c: Use the right return type for the event callbacks.
This commit is contained in:
parent
bc13e907cc
commit
84229a7617
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
#include <clutter/clutter.h>
|
#include <clutter/clutter.h>
|
||||||
|
|
||||||
static void
|
static gboolean
|
||||||
button_press_cb (ClutterStage *stage,
|
button_press_cb (ClutterStage *stage,
|
||||||
ClutterButtonEvent *event,
|
ClutterButtonEvent *event,
|
||||||
gpointer data)
|
gpointer data)
|
||||||
@ -27,9 +27,11 @@ button_press_cb (ClutterStage *stage,
|
|||||||
}
|
}
|
||||||
|
|
||||||
g_print ("%s button press event\n", click_type);
|
g_print ("%s button press event\n", click_type);
|
||||||
|
|
||||||
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static gboolean
|
||||||
scroll_event_cb (ClutterStage *stage,
|
scroll_event_cb (ClutterStage *stage,
|
||||||
ClutterScrollEvent *event,
|
ClutterScrollEvent *event,
|
||||||
gpointer data)
|
gpointer data)
|
||||||
@ -37,6 +39,8 @@ scroll_event_cb (ClutterStage *stage,
|
|||||||
g_print ("scroll direction: %s\n",
|
g_print ("scroll direction: %s\n",
|
||||||
event->direction == CLUTTER_SCROLL_UP ? "up"
|
event->direction == CLUTTER_SCROLL_UP ? "up"
|
||||||
: "down");
|
: "down");
|
||||||
|
|
||||||
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user