Commit 4c150d8e authored by Matthias Clasen's avatar Matthias Clasen

The big versioning cleanup

Remove all the old 2.x and 3.x version annotations.
GTK+ 4 is a new start, and from the perspective of a
GTK+ 4 developer all these APIs have been around since
the beginning.
parent 2616e685
......@@ -61,54 +61,6 @@
<title>Index of deprecated symbols</title>
<xi:include href="xml/api-index-deprecated.xml"><xi:fallback /></xi:include>
</index>
<index id="api-index-3-0" role="3.0">
<title>Index of new symbols in 3.0</title>
<xi:include href="xml/api-index-3.0.xml"><xi:fallback /></xi:include>
</index>
<index id="api-index-3-2" role="3.2">
<title>Index of new symbols in 3.2</title>
<xi:include href="xml/api-index-3.2.xml"><xi:fallback /></xi:include>
</index>
<index id="api-index-3-4" role="3.4">
<title>Index of new symbols in 3.4</title>
<xi:include href="xml/api-index-3.4.xml"><xi:fallback /></xi:include>
</index>
<index id="api-index-3-6" role="3.6">
<title>Index of new symbols in 3.6</title>
<xi:include href="xml/api-index-3.6.xml"><xi:fallback /></xi:include>
</index>
<index id="api-index-3-8" role="3.8">
<title>Index of new symbols in 3.8</title>
<xi:include href="xml/api-index-3.8.xml"><xi:fallback /></xi:include>
</index>
<index id="api-index-3-10" role="3.10">
<title>Index of new symbols in 3.10</title>
<xi:include href="xml/api-index-3.10.xml"><xi:fallback /></xi:include>
</index>
<index id="api-index-3-12" role="3.12">
<title>Index of new symbols in 3.12</title>
<xi:include href="xml/api-index-3.12.xml"><xi:fallback /></xi:include>
</index>
<index id="api-index-3-14" role="3.14">
<title>Index of new symbols in 3.14</title>
<xi:include href="xml/api-index-3.14.xml"><xi:fallback /></xi:include>
</index>
<index id="api-index-3-16" role="3.16">
<title>Index of new symbols in 3.16</title>
<xi:include href="xml/api-index-3.16.xml"><xi:fallback /></xi:include>
</index>
<index id="api-index-3-18" role="3.18">
<title>Index of new symbols in 3.18</title>
<xi:include href="xml/api-index-3.18.xml"><xi:fallback /></xi:include>
</index>
<index id="api-index-3-20" role="3.20">
<title>Index of new symbols in 3.20</title>
<xi:include href="xml/api-index-3.20.xml"><xi:fallback /></xi:include>
</index>
<index id="api-index-3-22" role="3.22">
<title>Index of new symbols in 3.22</title>
<xi:include href="xml/api-index-3.22.xml"><xi:fallback /></xi:include>
</index>
<xi:include href="xml/annotation-glossary.xml"><xi:fallback /></xi:include>
......
......@@ -12,21 +12,7 @@ GDK_WINDOWING_QUARTZ
GDK_WINDOWING_WAYLAND
<SUBSECTION>
GDK_VERSION_3_0
GDK_VERSION_3_2
GDK_VERSION_3_4
GDK_VERSION_3_6
GDK_VERSION_3_8
GDK_VERSION_3_10
GDK_VERSION_3_12
GDK_VERSION_3_14
GDK_VERSION_3_16
GDK_VERSION_3_18
GDK_VERSION_3_20
GDK_VERSION_3_22
GDK_VERSION_3_90
GDK_VERSION_3_92
GDK_VERSION_3_94
GDK_VERSION_4_0
GDK_VERSION_MIN_REQUIRED
GDK_VERSION_MAX_ALLOWED
GDK_DISABLE_DEPRECATION_WARNINGS
......@@ -69,49 +55,13 @@ gdk_window_type_get_type
gdk_window_type_hint_get_type
gdk_wm_decoration_get_type
gdk_wm_function_get_type
GDK_AVAILABLE_IN_3_0
GDK_AVAILABLE_IN_3_10
GDK_AVAILABLE_IN_3_12
GDK_AVAILABLE_IN_3_14
GDK_AVAILABLE_IN_3_16
GDK_AVAILABLE_IN_3_18
GDK_AVAILABLE_IN_3_2
GDK_AVAILABLE_IN_3_20
GDK_AVAILABLE_IN_3_22
GDK_AVAILABLE_IN_3_4
GDK_AVAILABLE_IN_3_6
GDK_AVAILABLE_IN_3_8
GDK_AVAILABLE_IN_3_90
GDK_AVAILABLE_IN_3_92
GDK_AVAILABLE_IN_3_94
GDK_AVAILABLE_IN_4_0
GDK_AVAILABLE_IN_ALL
GDK_UNAVAILABLE
GDK_DEPRECATED
GDK_DEPRECATED_FOR
GDK_DEPRECATED_IN_3_0
GDK_DEPRECATED_IN_3_0_FOR
GDK_DEPRECATED_IN_3_10
GDK_DEPRECATED_IN_3_10_FOR
GDK_DEPRECATED_IN_3_12
GDK_DEPRECATED_IN_3_12_FOR
GDK_DEPRECATED_IN_3_14
GDK_DEPRECATED_IN_3_14_FOR
GDK_DEPRECATED_IN_3_16
GDK_DEPRECATED_IN_3_16_FOR
GDK_DEPRECATED_IN_3_18
GDK_DEPRECATED_IN_3_18_FOR
GDK_DEPRECATED_IN_3_2
GDK_DEPRECATED_IN_3_20
GDK_DEPRECATED_IN_3_20_FOR
GDK_DEPRECATED_IN_3_22
GDK_DEPRECATED_IN_3_22_FOR
GDK_DEPRECATED_IN_3_2_FOR
GDK_DEPRECATED_IN_3_4
GDK_DEPRECATED_IN_3_4_FOR
GDK_DEPRECATED_IN_3_6
GDK_DEPRECATED_IN_3_6_FOR
GDK_DEPRECATED_IN_3_8
GDK_DEPRECATED_IN_3_8_FOR
GDK_DEPRECATED_IN_4_0
GDK_DEPRECATED_IN_4_0_FOR
GDK_VERSION_CUR_STABLE
GDK_VERSION_PREV_STABLE
</SECTION>
......
......@@ -384,58 +384,6 @@
<title>Index of deprecated symbols</title>
<xi:include href="xml/api-index-deprecated.xml"><xi:fallback /></xi:include>
</index>
<index id="api-index-3-0" role="3.0">
<title>Index of new symbols in 3.0</title>
<xi:include href="xml/api-index-3.0.xml"><xi:fallback /></xi:include>
</index>
<index id="api-index-3-2" role="3.2">
<title>Index of new symbols in 3.2</title>
<xi:include href="xml/api-index-3.2.xml"><xi:fallback /></xi:include>
</index>
<index id="api-index-3-4" role="3.4">
<title>Index of new symbols in 3.4</title>
<xi:include href="xml/api-index-3.4.xml"><xi:fallback /></xi:include>
</index>
<index id="api-index-3-6" role="3.6">
<title>Index of new symbols in 3.6</title>
<xi:include href="xml/api-index-3.6.xml"><xi:fallback /></xi:include>
</index>
<index id="api-index-3-8" role="3.8">
<title>Index of new symbols in 3.8</title>
<xi:include href="xml/api-index-3.8.xml"><xi:fallback /></xi:include>
</index>
<index id="api-index-3-10" role="3.10">
<title>Index of new symbols in 3.10</title>
<xi:include href="xml/api-index-3.10.xml"><xi:fallback /></xi:include>
</index>
<index id="api-index-3-12" role="3.12">
<title>Index of new symbols in 3.12</title>
<xi:include href="xml/api-index-3.12.xml"><xi:fallback /></xi:include>
</index>
<index id="api-index-3-14" role="3.14">
<title>Index of new symbols in 3.14</title>
<xi:include href="xml/api-index-3.14.xml"><xi:fallback /></xi:include>
</index>
<index id="api-index-3-16" role="3.16">
<title>Index of new symbols in 3.16</title>
<xi:include href="xml/api-index-3.16.xml"><xi:fallback /></xi:include>
</index>
<index id="api-index-3-18" role="3.18">
<title>Index of new symbols in 3.18</title>
<xi:include href="xml/api-index-3.18.xml"><xi:fallback /></xi:include>
</index>
<index id="api-index-3-20" role="3.20">
<title>Index of new symbols in 3.20</title>
<xi:include href="xml/api-index-3.20.xml"><xi:fallback /></xi:include>
</index>
<index id="api-index-3-22" role="3.22">
<title>Index of new symbols in 3.22</title>
<xi:include href="xml/api-index-3.22.xml"><xi:fallback /></xi:include>
</index>
<index id="api-index-3-90" role="3.90">
<title>Index of new symbols in 3.90</title>
<xi:include href="xml/api-index-3.90.xml"><xi:fallback /></xi:include>
</index>
<xi:include href="xml/annotation-glossary.xml"><xi:fallback /></xi:include>
......
......@@ -43,9 +43,9 @@ typedef struct _GdkBroadwayDisplayClass GdkBroadwayDisplayClass;
GDK_AVAILABLE_IN_ALL
GType gdk_broadway_display_get_type (void);
GDK_AVAILABLE_IN_3_12
GDK_AVAILABLE_IN_ALL
void gdk_broadway_display_show_keyboard (GdkBroadwayDisplay *display);
GDK_AVAILABLE_IN_3_12
GDK_AVAILABLE_IN_ALL
void gdk_broadway_display_hide_keyboard (GdkBroadwayDisplay *display);
G_END_DECLS
......
......@@ -37,7 +37,7 @@ G_BEGIN_DECLS
typedef struct _GdkBroadwayMonitor GdkBroadwayMonitor;
typedef struct _GdkBroadwayMonitorClass GdkBroadwayMonitorClass;
GDK_AVAILABLE_IN_3_22
GDK_AVAILABLE_IN_ALL
GType gdk_broadway_monitor_get_type (void) G_GNUC_CONST;
G_END_DECLS
......
......@@ -186,8 +186,6 @@ gdk_app_launch_context_get_display (GAppLaunchContext *context,
* When the workspace is not specified or @desktop is set to -1,
* it is up to the window manager to pick one, typically it will
* be the current workspace.
*
* Since: 2.14
*/
void
gdk_app_launch_context_set_desktop (GdkAppLaunchContext *context,
......@@ -210,8 +208,6 @@ gdk_app_launch_context_set_desktop (GdkAppLaunchContext *context,
* focus to the newly launched application when the user is busy
* typing in another window. This is also known as 'focus stealing
* prevention'.
*
* Since: 2.14
*/
void
gdk_app_launch_context_set_timestamp (GdkAppLaunchContext *context,
......@@ -234,8 +230,6 @@ gdk_app_launch_context_set_timestamp (GdkAppLaunchContext *context,
* notification.
*
* See also gdk_app_launch_context_set_icon_name().
*
* Since: 2.14
*/
void
gdk_app_launch_context_set_icon (GdkAppLaunchContext *context,
......@@ -267,8 +261,6 @@ gdk_app_launch_context_set_icon (GdkAppLaunchContext *context,
* If neither @icon or @icon_name is set, the icon is taken from either
* the file that is passed to launched application or from the #GAppInfo
* for the launched application itself.
*
* Since: 2.14
*/
void
gdk_app_launch_context_set_icon_name (GdkAppLaunchContext *context,
......
......@@ -84,8 +84,6 @@ gdk_cairo_get_clip_rectangle (cairo_t *cr,
* @rgba: a #GdkRGBA
*
* Sets the specified #GdkRGBA as the source color of @cr.
*
* Since: 3.0
*/
void
gdk_cairo_set_source_rgba (cairo_t *cr,
......@@ -107,8 +105,6 @@ gdk_cairo_set_source_rgba (cairo_t *cr,
* @rectangle: a #GdkRectangle
*
* Adds the given rectangle to the current path of @cr.
*
* Since: 2.8
*/
void
gdk_cairo_rectangle (cairo_t *cr,
......@@ -128,8 +124,6 @@ gdk_cairo_rectangle (cairo_t *cr,
* @region: a #cairo_region_t
*
* Adds the given region to the current path of @cr.
*
* Since: 2.8
*/
void
gdk_cairo_region (cairo_t *cr,
......@@ -253,8 +247,6 @@ gdk_cairo_surface_paint_pixbuf (cairo_surface_t *surface,
* the pixbuf.
*
* Returns: a new cairo surface, must be freed with cairo_surface_destroy()
*
* Since: 3.10
*/
cairo_surface_t *
gdk_cairo_surface_create_from_pixbuf (const GdkPixbuf *pixbuf,
......@@ -296,8 +288,6 @@ gdk_cairo_surface_create_from_pixbuf (const GdkPixbuf *pixbuf,
*
* The pattern has an extend mode of %CAIRO_EXTEND_NONE and is aligned
* so that the origin of @pixbuf is @pixbuf_x, @pixbuf_y.
*
* Since: 2.8
*/
void
gdk_cairo_set_source_pixbuf (cairo_t *cr,
......
......@@ -55,11 +55,11 @@ cairo_region_t *
gdk_cairo_region_create_from_surface
(cairo_surface_t *surface);
GDK_AVAILABLE_IN_3_10
GDK_AVAILABLE_IN_ALL
cairo_surface_t * gdk_cairo_surface_create_from_pixbuf (const GdkPixbuf *pixbuf,
int scale,
GdkWindow *for_window);
GDK_AVAILABLE_IN_3_16
GDK_AVAILABLE_IN_ALL
void gdk_cairo_draw_from_gl (cairo_t *cr,
GdkWindow *window,
int source,
......@@ -70,10 +70,10 @@ void gdk_cairo_draw_from_gl (cairo_t *cr,
int width,
int height);
GDK_AVAILABLE_IN_3_22
GDK_AVAILABLE_IN_ALL
GdkDrawingContext * gdk_cairo_get_drawing_context (cairo_t *cr);
GDK_AVAILABLE_IN_3_22
GDK_AVAILABLE_IN_ALL
void gdk_cairo_surface_upload_to_gl (cairo_surface_t *surface,
int target,
int width,
......
......@@ -363,8 +363,6 @@ gdk_clipboard_class_init (GdkClipboardClass *class)
* GdkClipboard:display:
*
* The #GdkDisplay that the clipboard belongs to.
*
* Since: 3.94
*/
properties[PROP_DISPLAY] =
g_param_spec_object ("display",
......@@ -380,8 +378,6 @@ gdk_clipboard_class_init (GdkClipboardClass *class)
* GdkClipboard:formats:
*
* The possible formats that the clipboard can provide its data in.
*
* Since: 3.94
*/
properties[PROP_FORMATS] =
g_param_spec_boxed ("formats",
......@@ -396,8 +392,6 @@ gdk_clipboard_class_init (GdkClipboardClass *class)
* GdkClipboard:local:
*
* %TRUE if the contents of the clipboard are owned by this process.
*
* Since: 3.94
*/
properties[PROP_LOCAL] =
g_param_spec_boolean ("local",
......@@ -413,8 +407,6 @@ gdk_clipboard_class_init (GdkClipboardClass *class)
*
* The #GdkContentProvider or %NULL if the clipboard is empty or contents are
* provided otherwise.
*
* Since: 3.94
*/
properties[PROP_CONTENT] =
g_param_spec_object ("content",
......
......@@ -34,89 +34,89 @@ G_BEGIN_DECLS
#define GDK_CLIPBOARD(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GDK_TYPE_CLIPBOARD, GdkClipboard))
#define GDK_IS_CLIPBOARD(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GDK_TYPE_CLIPBOARD))
GDK_AVAILABLE_IN_3_94
GDK_AVAILABLE_IN_ALL
GType gdk_clipboard_get_type (void) G_GNUC_CONST;
GDK_AVAILABLE_IN_3_94
GDK_AVAILABLE_IN_ALL
GdkDisplay * gdk_clipboard_get_display (GdkClipboard *clipboard);
GDK_AVAILABLE_IN_3_94
GDK_AVAILABLE_IN_ALL
GdkContentFormats * gdk_clipboard_get_formats (GdkClipboard *clipboard);
GDK_AVAILABLE_IN_3_94
GDK_AVAILABLE_IN_ALL
gboolean gdk_clipboard_is_local (GdkClipboard *clipboard);
GDK_AVAILABLE_IN_3_94
GDK_AVAILABLE_IN_ALL
GdkContentProvider * gdk_clipboard_get_content (GdkClipboard *clipboard);
GDK_AVAILABLE_IN_3_94
GDK_AVAILABLE_IN_ALL
void gdk_clipboard_store_async (GdkClipboard *clipboard,
int io_priority,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
GDK_AVAILABLE_IN_3_94
GDK_AVAILABLE_IN_ALL
gboolean gdk_clipboard_store_finish (GdkClipboard *clipboard,
GAsyncResult *result,
GError **error);
GDK_AVAILABLE_IN_3_94
GDK_AVAILABLE_IN_ALL
void gdk_clipboard_read_async (GdkClipboard *clipboard,
const char **mime_types,
int io_priority,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
GDK_AVAILABLE_IN_3_94
GDK_AVAILABLE_IN_ALL
GInputStream * gdk_clipboard_read_finish (GdkClipboard *clipboard,
const char **out_mime_type,
GAsyncResult *result,
GError **error);
GDK_AVAILABLE_IN_3_94
GDK_AVAILABLE_IN_ALL
void gdk_clipboard_read_value_async (GdkClipboard *clipboard,
GType type,
int io_priority,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
GDK_AVAILABLE_IN_3_94
GDK_AVAILABLE_IN_ALL
const GValue * gdk_clipboard_read_value_finish (GdkClipboard *clipboard,
GAsyncResult *result,
GError **error);
GDK_AVAILABLE_IN_3_94
GDK_AVAILABLE_IN_ALL
void gdk_clipboard_read_texture_async(GdkClipboard *clipboard,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
GDK_AVAILABLE_IN_3_94
GDK_AVAILABLE_IN_ALL
GdkTexture * gdk_clipboard_read_texture_finish (GdkClipboard *clipboard,
GAsyncResult *result,
GError **error);
GDK_AVAILABLE_IN_3_94
GDK_AVAILABLE_IN_ALL
void gdk_clipboard_read_text_async (GdkClipboard *clipboard,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
GDK_AVAILABLE_IN_3_94
GDK_AVAILABLE_IN_ALL
char * gdk_clipboard_read_text_finish (GdkClipboard *clipboard,
GAsyncResult *result,
GError **error);
GDK_AVAILABLE_IN_3_94
GDK_AVAILABLE_IN_ALL
gboolean gdk_clipboard_set_content (GdkClipboard *clipboard,
GdkContentProvider *provider);
GDK_AVAILABLE_IN_3_94
GDK_AVAILABLE_IN_ALL
void gdk_clipboard_set (GdkClipboard *clipboard,
GType type,
...);
GDK_AVAILABLE_IN_3_94
GDK_AVAILABLE_IN_ALL
void gdk_clipboard_set_valist (GdkClipboard *clipboard,
GType type,
va_list args);
GDK_AVAILABLE_IN_3_94
GDK_AVAILABLE_IN_ALL
void gdk_clipboard_set_value (GdkClipboard *clipboard,
const GValue *value);
GDK_AVAILABLE_IN_3_94
GDK_AVAILABLE_IN_ALL
void gdk_clipboard_set_text (GdkClipboard *clipboard,
const char *text);
GDK_AVAILABLE_IN_3_94
GDK_AVAILABLE_IN_ALL
void gdk_clipboard_set_texture (GdkClipboard *clipboard,
GdkTexture *texture);
......
......@@ -50,48 +50,48 @@ typedef struct _GdkContentDeserializer GdkContentDeserializer;
*/
typedef void (* GdkContentDeserializeFunc) (GdkContentDeserializer *deserializer);
GDK_AVAILABLE_IN_3_94
GDK_AVAILABLE_IN_ALL
GType gdk_content_deserializer_get_type (void) G_GNUC_CONST;
GDK_AVAILABLE_IN_3_94
GDK_AVAILABLE_IN_ALL
const char * gdk_content_deserializer_get_mime_type (GdkContentDeserializer *deserializer);
GDK_AVAILABLE_IN_3_94
GDK_AVAILABLE_IN_ALL
GType gdk_content_deserializer_get_gtype (GdkContentDeserializer *deserializer);
GDK_AVAILABLE_IN_3_94
GDK_AVAILABLE_IN_ALL
GValue * gdk_content_deserializer_get_value (GdkContentDeserializer *deserializer);
GDK_AVAILABLE_IN_3_94
GDK_AVAILABLE_IN_ALL
GInputStream * gdk_content_deserializer_get_input_stream (GdkContentDeserializer *deserializer);
GDK_AVAILABLE_IN_3_94
GDK_AVAILABLE_IN_ALL
int gdk_content_deserializer_get_priority (GdkContentDeserializer *deserializer);
GDK_AVAILABLE_IN_3_94
GDK_AVAILABLE_IN_ALL
GCancellable * gdk_content_deserializer_get_cancellable (GdkContentDeserializer *deserializer);
GDK_AVAILABLE_IN_3_94
GDK_AVAILABLE_IN_ALL
gpointer gdk_content_deserializer_get_user_data (GdkContentDeserializer *deserializer);
GDK_AVAILABLE_IN_3_94
GDK_AVAILABLE_IN_ALL
void gdk_content_deserializer_set_task_data (GdkContentDeserializer *deserializer,
gpointer data,
GDestroyNotify notify);
GDK_AVAILABLE_IN_3_94
GDK_AVAILABLE_IN_ALL
gpointer gdk_content_deserializer_get_task_data (GdkContentDeserializer *deserializer);
GDK_AVAILABLE_IN_3_94
GDK_AVAILABLE_IN_ALL
void gdk_content_deserializer_return_success (GdkContentDeserializer *deserializer);
GDK_AVAILABLE_IN_3_94
GDK_AVAILABLE_IN_ALL
void gdk_content_deserializer_return_error (GdkContentDeserializer *deserializer,
GError *error);
GDK_AVAILABLE_IN_3_94
GDK_AVAILABLE_IN_ALL
GdkContentFormats * gdk_content_formats_union_deserialize_gtypes (GdkContentFormats *formats);
GDK_AVAILABLE_IN_3_94
GDK_AVAILABLE_IN_ALL
GdkContentFormats * gdk_content_formats_union_deserialize_mime_types(GdkContentFormats *formats);
GDK_AVAILABLE_IN_3_94
GDK_AVAILABLE_IN_ALL
void gdk_content_register_deserializer (const char *mime_type,
GType type,
GdkContentDeserializeFunc deserialize,
gpointer data,
GDestroyNotify notify);
GDK_AVAILABLE_IN_3_94
GDK_AVAILABLE_IN_ALL
void gdk_content_deserialize_async (GInputStream *stream,
const char *mime_type,
GType type,
......@@ -99,7 +99,7 @@ void gdk_content_deserialize_async (GInputS
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
GDK_AVAILABLE_IN_3_94
GDK_AVAILABLE_IN_ALL
gboolean gdk_content_deserialize_finish (GAsyncResult *result,
GValue *value,
GError **error);
......
......@@ -30,50 +30,50 @@ G_BEGIN_DECLS
#define GDK_TYPE_CONTENT_FORMATS (gdk_content_formats_get_type ())
GDK_AVAILABLE_IN_3_94
GDK_AVAILABLE_IN_ALL
const char * gdk_intern_mime_type (const char *string);
GDK_AVAILABLE_IN_3_94
GDK_AVAILABLE_IN_ALL
GType gdk_content_formats_get_type (void) G_GNUC_CONST;
GDK_AVAILABLE_IN_3_94
GDK_AVAILABLE_IN_ALL
GdkContentFormats * gdk_content_formats_new (const char **mime_types,
guint n_mime_types);
GDK_AVAILABLE_IN_3_94
GDK_AVAILABLE_IN_ALL
GdkContentFormats * gdk_content_formats_new_for_gtype (GType type);
GDK_AVAILABLE_IN_3_94
GDK_AVAILABLE_IN_ALL
GdkContentFormats * gdk_content_formats_ref (GdkContentFormats *formats);
GDK_AVAILABLE_IN_3_94