]> Pileus Git - ~andy/gtk/commitdiff
Deprecate GtkInputDialog
authorChristian Dywan <christian@twotoasts.de>
Fri, 16 Oct 2009 14:05:13 +0000 (16:05 +0200)
committerChristian Dywan <christian@twotoasts.de>
Fri, 16 Oct 2009 14:05:13 +0000 (16:05 +0200)
Deprecate the widget and adjust the documentation.

https://bugzilla.gnome.org/show_bug.cgi?id=594903

docs/reference/gdk/tmpl/input_devices.sgml
docs/reference/gtk/tmpl/gtkinputdialog.sgml
gtk/Makefile.am
gtk/gtk.h
gtk/gtk.symbols
gtk/gtkinputdialog.h

index 21a2fa137d3b7c56d0ef37d9b7ef02bb7dad91dc..b9059212132ad24830fe633d887bf7be37797a2f 100644 (file)
@@ -57,12 +57,7 @@ devices without having to keep track of complicated per-device
 settings.
 </para>
 <para>
-Various aspects of each device may be configured. The easiest way of
-creating a GUI to allow the user to configure such a device
-is to use the #GtkInputDialog widget in GTK+. 
-However, even when using this widget, application writers
-will need to directly query and set the configuration parameters
-in order to save the state between invocations of the application.
+Various aspects of each device may be configured.
 The configuration of devices is queried using gdk_devices_list().
 Each device must be activated using gdk_device_set_mode(), which
 also controls whether the device's range is mapped to the
index 99021b8c082df2fb5ef0e6e47e9214a781db6ee3..e17b24474073766f652fc4b651f3d258dfeecd9d 100644 (file)
@@ -5,15 +5,6 @@ GtkInputDialog
 Configure devices for the XInput extension
 
 <!-- ##### SECTION Long_Description ##### -->
-<para>
- NOTE this widget is considered too specialized/little-used for
- GTK+, and will in the future be moved to some other package.  If
- your application needs this widget, feel free to use it, as the
- widget does work and is useful in some applications; it's just not
- of general interest. However, we are not accepting new features for
- the widget, and it will eventually move out of the GTK+
- distribution.
-</para>
 
 <para>
 #GtkInputDialog displays a dialog which allows the user
@@ -32,6 +23,9 @@ No actions are bound to these by default.
 The changes that the user makes take effect
 immediately. 
 </para>
+<para>
+As of GTK+ 2.20, #GtkInputDialog has been deprecated since it is too specialized.
+</para>
 
 <!-- ##### SECTION See_Also ##### -->
 <para>
@@ -55,6 +49,7 @@ to #GDK_MODE_ENABLED.
 
 @inputdialog: the object which received the signal.
 @deviceid: The ID of the newly disabled device.
+@Deprecated: 2.20: Don't use this widget anymore.
 
 <!-- ##### SIGNAL GtkInputDialog::enable-device ##### -->
 <para>
@@ -65,6 +60,7 @@ mode of a device from #GDK_MODE_DISABLED to a
 
 @inputdialog: the object which received the signal.
 @deviceid: The ID of the newly enabled device.
+@Deprecated: 2.20: Don't use this widget anymore.
 
 <!-- ##### FUNCTION gtk_input_dialog_new ##### -->
 <para>
@@ -72,5 +68,4 @@ Creates a new #GtkInputDialog.
 </para>
 
 @Returns: the new #GtkInputDialog.
-
-
+@Deprecated: 2.20: Don't use this widget anymore.
index 94f27ae0ea2ac19c595e095d2a3b1b5b9aef77ee..d35170a9d31869845baf336be82f4004d6651d10 100644 (file)
@@ -233,7 +233,6 @@ gtk_public_h_sources =          \
        gtkimmodule.h           \
        gtkimmulticontext.h     \
        gtkinfobar.h            \
-       gtkinputdialog.h        \
        gtkinvisible.h          \
        gtkitem.h               \
        gtklabel.h              \
@@ -635,6 +634,7 @@ gtk_public_h_sources += \
        gtkcombo.h              \
        gtkctree.h              \
        gtkfilesel.h            \
+       gtkinputdialog.h        \
        gtkitemfactory.h        \
        gtklist.h               \
        gtklistitem.h           \
index 6cf26a3ee4e985c747dbdeccbcc5bcb8867989fe..22c8ada248a579ed382d6badbad241dd69d17f56 100644 (file)
--- a/gtk/gtk.h
+++ b/gtk/gtk.h
 #include <gtk/gtkimcontextsimple.h>
 #include <gtk/gtkimmulticontext.h>
 #include <gtk/gtkinfobar.h>
-#include <gtk/gtkinputdialog.h>
 #include <gtk/gtkinvisible.h>
 #include <gtk/gtkitem.h>
 #include <gtk/gtklabel.h>
 #include <gtk/gtkcombo.h>
 #include <gtk/gtkctree.h>
 #include <gtk/gtkfilesel.h>
+#include <gtk/gtkinputdialog.h>
 #include <gtk/gtkitemfactory.h>
 #include <gtk/gtklist.h>
 #include <gtk/gtklistitem.h>
index c3952a4673354421bf90864e06150b772b270756..6a276db3c584118c40b6453b28d2b0865f5ae98c 100644 (file)
@@ -2428,10 +2428,12 @@ gtk_main_quit
 
 #if IN_HEADER(__GTK_INPUTDIALOG_H__)
 #if IN_FILE(__GTK_INPUTDIALOG_C__)
+#ifndef GTK_DISABLE_DEPRECATED
 gtk_input_dialog_get_type G_GNUC_CONST
 gtk_input_dialog_new
 #endif
 #endif
+#endif
 
 #if IN_HEADER(__gtk_marshal_MARSHAL_H__)
 #if IN_FILE(__gtk_marshal_MARSHAL_C__)
index 4c1647b992545c6541799e169443b58bc8ce6ba3..6e95356beab85fedcd9c52efacd29b8498bc455f 100644 (file)
@@ -34,9 +34,7 @@
  * distribution.
  */
 
-#if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
-#error "Only <gtk/gtk.h> can be included directly."
-#endif
+#ifndef GTK_DISABLE_DEPRECATED
 
 #ifndef __GTK_INPUTDIALOG_H__
 #define __GTK_INPUTDIALOG_H__
@@ -92,11 +90,11 @@ struct _GtkInputDialogClass
   void (*_gtk_reserved4) (void);
 };
 
-
 GType      gtk_input_dialog_get_type     (void) G_GNUC_CONST;
 GtkWidget* gtk_input_dialog_new          (void);
 
-
 G_END_DECLS
 
 #endif /* __GTK_INPUTDIALOG_H__ */
+
+#endif /* GTK_DISABLE_DEPRECATED */