projects
/
projects
/
chimara
/
chimara.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Improvements to Python player
[projects/chimara/chimara.git]
/
libchimara
/
mouse.c
diff --git
a/libchimara/mouse.c
b/libchimara/mouse.c
index 3fd464fc04aa79f4f80fcc3ce2b72d6116d12136..2c7d7b23812e67de6d83e62fd0659d0334bb930f 100644
(file)
--- a/
libchimara/mouse.c
+++ b/
libchimara/mouse.c
@@
-1,6
+1,12
@@
#include "mouse.h"
#include "magic.h"
#include "mouse.h"
#include "magic.h"
+/**
+ * glk_request_mouse_event:
+ * @win: Window on which to request a mouse input event.
+ *
+ * Requests mouse input on the window @win.
+ */
void
glk_request_mouse_event(winid_t win)
{
void
glk_request_mouse_event(winid_t win)
{
@@
-11,6
+17,12
@@
glk_request_mouse_event(winid_t win)
g_signal_handler_unblock(win->widget, win->button_press_event_handler);
}
g_signal_handler_unblock(win->widget, win->button_press_event_handler);
}
+/**
+ * glk_cancel_mouse_event:
+ * @win: Window with a mouse input event pending.
+ *
+ * Cancels the pending mouse input request on @win.
+ */
void
glk_cancel_mouse_event(winid_t win)
{
void
glk_cancel_mouse_event(winid_t win)
{
@@
-39,5
+51,7
@@
on_window_button_press(GtkWidget *widget, GdkEventButton *event, winid_t win)
ILLEGAL_PARAM("Unknown window type: %u", win->type);
}
ILLEGAL_PARAM("Unknown window type: %u", win->type);
}
+ g_signal_handler_block(win->widget, win->button_press_event_handler);
+
return TRUE;
}
return TRUE;
}