diff options
author | Benjamin Otte <otte@redhat.com> | 2017-11-18 02:19:53 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2017-11-20 23:12:33 +0100 |
commit | 9a6ec4e9591df1a8ed72bbf8793091a1f325b5ff (patch) | |
tree | a5a8ca3908f228fdfc64acc8a6a7ca3c5508094c /gdk/gdkcontentformats.h | |
parent | 0638bbb5d58d783519fd07dc548996d405398f4f (diff) | |
download | gtk+-9a6ec4e9591df1a8ed72bbf8793091a1f325b5ff.tar.gz |
contentformats: Rename GtkTargetList
It's now called GdkContentsFormat
Diffstat (limited to 'gdk/gdkcontentformats.h')
-rw-r--r-- | gdk/gdkcontentformats.h | 67 |
1 files changed, 24 insertions, 43 deletions
diff --git a/gdk/gdkcontentformats.h b/gdk/gdkcontentformats.h index 39c72408c5..8859658bfb 100644 --- a/gdk/gdkcontentformats.h +++ b/gdk/gdkcontentformats.h @@ -1,5 +1,5 @@ /* GTK - The GIMP Toolkit - * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * Copyright (C) 2017 Benjamin Otte * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -15,13 +15,6 @@ * License along with this library. If not, see <http://www.gnu.org/licenses/>. */ -/* - * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS - * file for a list of people on the GTK+ Team. See the ChangeLog - * files for a list of changes. These files are distributed with - * GTK+ at ftp://ftp.gtk.org/pub/gtk/. - */ - #ifndef __GTK_CONTENT_FORMATS_H__ #define __GTK_CONTENT_FORMATS_H__ @@ -35,45 +28,33 @@ G_BEGIN_DECLS -/** - * GtkTargetList: - * - * A #GtkTargetList-struct is a reference counted list - * of #GtkTargetPair and should be treated as - * opaque. - */ -typedef struct _GtkTargetList GtkTargetList; +#define GDK_TYPE_CONTENT_FORMATS (gdk_content_formats_get_type ()) -#define GTK_TYPE_TARGET_LIST (gtk_target_list_get_type ()) +GDK_AVAILABLE_IN_3_94 +GType gdk_content_formats_get_type (void) G_GNUC_CONST; +GDK_AVAILABLE_IN_3_94 +GdkContentFormats * gdk_content_formats_new (const char **mime_types, + guint n_mime_types); +GDK_AVAILABLE_IN_3_94 +GdkContentFormats * gdk_content_formats_ref (GdkContentFormats *formats); +GDK_AVAILABLE_IN_3_94 +void gdk_content_formats_unref (GdkContentFormats *formats); -GDK_AVAILABLE_IN_ALL -GType gtk_target_list_get_type (void) G_GNUC_CONST; -GDK_AVAILABLE_IN_ALL -GtkTargetList *gtk_target_list_new (const char **targets, - guint ntargets); -GDK_AVAILABLE_IN_ALL -GtkTargetList *gtk_target_list_ref (GtkTargetList *list); -GDK_AVAILABLE_IN_ALL -void gtk_target_list_unref (GtkTargetList *list); GDK_AVAILABLE_IN_3_94 -void gtk_target_list_merge (GtkTargetList *target, - const GtkTargetList *source); +void gdk_content_formats_union (GdkContentFormats *first, + const GdkContentFormats *second); +GDK_AVAILABLE_IN_3_94 +GdkAtom gdk_content_formats_intersects (const GdkContentFormats *first, + const GdkContentFormats *second); +GDK_AVAILABLE_IN_3_94 +void gdk_content_formats_add (GdkContentFormats *formats, + const char *mime_type); +GDK_AVAILABLE_IN_3_94 +void gdk_content_formats_remove (GdkContentFormats *formats, + const char *mime_type); GDK_AVAILABLE_IN_3_94 -GdkAtom gtk_target_list_intersects(const GtkTargetList *first, - const GtkTargetList *second); -GDK_AVAILABLE_IN_ALL -void gtk_target_list_add (GtkTargetList *list, - const char *target); -GDK_AVAILABLE_IN_ALL -void gtk_target_list_add_table (GtkTargetList *list, - const char **targets, - guint ntargets); -GDK_AVAILABLE_IN_ALL -void gtk_target_list_remove (GtkTargetList *list, - const char *target); -GDK_AVAILABLE_IN_ALL -gboolean gtk_target_list_find (GtkTargetList *list, - const char *target); +gboolean gdk_content_formats_contains (const GdkContentFormats *formats, + const char *mime_type); G_END_DECLS |