[gtk+/xi2] Add getter for gtk_widget_set_support_multidevice().



commit c06e6a7a2a7751d2dc64f87a40ee1b500665e990
Author: Carlos Garnacho <carlos gnome org>
Date:   Thu Jan 21 02:25:22 2010 +0100

    Add getter for gtk_widget_set_support_multidevice().

 gtk/gtk.symbols |    2 ++
 gtk/gtkwidget.c |   17 +++++++++++++++++
 gtk/gtkwidget.h |    1 +
 3 files changed, 20 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtk.symbols b/gtk/gtk.symbols
index 7d430a1..0b617bc 100644
--- a/gtk/gtk.symbols
+++ b/gtk/gtk.symbols
@@ -5229,6 +5229,8 @@ gtk_widget_set_can_default
 gtk_widget_get_can_default
 gtk_widget_set_can_focus
 gtk_widget_get_can_focus
+gtk_widget_get_support_multidevice
+gtk_widget_set_support_multidevice
 #endif
 #endif
 
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 5dfcf49..b5beb5b 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -11336,6 +11336,23 @@ gtk_widget_get_window (GtkWidget *widget)
 }
 
 /**
+ * gtk_widget_get_support_multidevice:
+ * @widget: a #GtkWidget
+ *
+ * Returns %TRUE if @widget is multiple pointer aware. See
+ * gtk_widget_set_support_multidevice() for more information.
+ *
+ * Returns: %TRUE is @widget is multidevice aware.
+ **/
+gboolean
+gtk_widget_get_support_multidevice (GtkWidget *widget)
+{
+  g_return_val_if_fail (GTK_IS_WIDGET (widget), FALSE);
+
+  return GTK_WIDGET_FLAGS (widget) & GTK_MULTIDEVICE;
+}
+
+/**
  * gtk_widget_set_support_multidevice:
  * @widget: a #GtkWidget
  * @support_multidevice: %TRUE to support input from multiple devices.
diff --git a/gtk/gtkwidget.h b/gtk/gtkwidget.h
index 74c5b49..3afff24 100644
--- a/gtk/gtkwidget.h
+++ b/gtk/gtkwidget.h
@@ -1030,6 +1030,7 @@ GdkPixmap *   gtk_widget_get_snapshot    (GtkWidget    *widget,
                                           GdkRectangle *clip_rect);
 
 /* Multidevice support */
+gboolean         gtk_widget_get_support_multidevice (GtkWidget      *widget);
 void             gtk_widget_set_support_multidevice (GtkWidget      *widget,
                                                      gboolean        support_multidevice);
 GtkDeviceGroup * gtk_widget_get_group_for_device    (GtkWidget      *widget,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]