[gtk+/multitouch-for-3.4: 45/89] gtk, settings: Deprecate gtk-touchscreen-mode



commit e0c8166fc39c3471e877266ef4a618ac8ab88a61
Author: Carlos Garnacho <carlosg gnome org>
Date:   Mon Dec 12 19:19:03 2011 +0100

    gtk,settings: Deprecate gtk-touchscreen-mode
    
    It's not used anywhere in GTK+ anymore.

 gtk/gtksettings.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtksettings.c b/gtk/gtksettings.c
index 34dc38c..7bec434 100644
--- a/gtk/gtksettings.c
+++ b/gtk/gtksettings.c
@@ -701,13 +701,16 @@ gtk_settings_class_init (GtkSettingsClass *class)
    * functionality.
    *
    * Since: 2.10
+   *
+   * Deprecated: 3.4. Generally the behavior touchscreen input should be
+   *             performed dynamically based on gdk_event_get_source_device().
    */
   result = settings_install_property_parser (class,
                                              g_param_spec_boolean ("gtk-touchscreen-mode",
                                                                    P_("Enable Touchscreen Mode"),
                                                                    P_("When TRUE, there are no motion notify events delivered on this screen"),
                                                                    FALSE,
-                                                                   GTK_PARAM_READWRITE),
+                                                                   GTK_PARAM_READWRITE | G_PARAM_DEPRECATED),
                                              NULL);
 
   g_assert (result == PROP_TOUCHSCREEN_MODE);



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