[glade] Deprecate glade_widget_get_device_from_event()
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glade] Deprecate glade_widget_get_device_from_event()
- Date: Wed, 3 Apr 2013 19:18:06 +0000 (UTC)
commit 498eee3f29e30eddd1fd1819506a757d428d8501
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date: Thu Apr 4 04:14:30 2013 +0900
Deprecate glade_widget_get_device_from_event()
gladeui/glade-widget.c | 15 +++------------
1 files changed, 3 insertions(+), 12 deletions(-)
---
diff --git a/gladeui/glade-widget.c b/gladeui/glade-widget.c
index 6dcddd8..33bd9b0 100644
--- a/gladeui/glade-widget.c
+++ b/gladeui/glade-widget.c
@@ -4154,22 +4154,13 @@ glade_widget_depends (GladeWidget *widget,
* Currently only motion and button events are handled (see IS_GLADE_WIDGET_EVENT)
*
* Returns: the asociated GdkDevice for this glade widget event.
+ *
+ * Deprecated: use gdk_event_get_device() instead.
*/
GdkDevice *
glade_widget_get_device_from_event (GdkEvent *event)
{
- g_return_val_if_fail (event, NULL);
-
- switch (event->type)
- {
- case GDK_BUTTON_PRESS:
- case GDK_BUTTON_RELEASE:
- return event->button.device;
- case GDK_MOTION_NOTIFY:
- return event->motion.device;
- default:
- return NULL;
- }
+ return gdk_event_get_device (event);
}
static gint glade_widget_su_stack = 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]