summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorJavier Jardón <jjardon@gnome.org>2010-12-19 20:43:30 +0000
committerJavier Jardón <jjardon@gnome.org>2010-12-19 20:48:20 +0000
commit26a304c54bf876df5f0ed886f2ca2abae761eccc (patch)
tree1871b583d546023cc6c9ac7aa4ba1c23cdceaa56 /gtk
parent39b85421f87a4e6f8b7bf73b269de612274dc648 (diff)
downloadgtk+-26a304c54bf876df5f0ed886f2ca2abae761eccc.tar.gz
Move GtkSelectionData to a private header
Diffstat (limited to 'gtk')
-rw-r--r--gtk/gtkdnd.c1
-rw-r--r--gtk/gtkselection.c5
-rw-r--r--gtk/gtkselection.h22
-rw-r--r--gtk/gtkselectionprivate.h40
4 files changed, 45 insertions, 23 deletions
diff --git a/gtk/gtkdnd.c b/gtk/gtkdnd.c
index b6e9ea0d2b..3e56216ace 100644
--- a/gtk/gtkdnd.c
+++ b/gtk/gtkdnd.c
@@ -52,6 +52,7 @@
#include "gtkwindow.h"
#include "gtkintl.h"
#include "gtkdndcursors.h"
+#include "gtkselectionprivate.h"
static GSList *source_widgets = NULL;
diff --git a/gtk/gtkselection.c b/gtk/gtkselection.c
index fd8058d3bf..71520e448e 100644
--- a/gtk/gtkselection.c
+++ b/gtk/gtkselection.c
@@ -52,13 +52,16 @@
*/
#include "config.h"
+
+#include "gtkselection.h"
+#include "gtkselectionprivate.h"
+
#include <stdarg.h>
#include <string.h>
#include "gdk.h"
#include "gtkmain.h"
#include "gtkdebug.h"
-#include "gtkselection.h"
#include "gtktextbufferrichtext.h"
#include "gtkintl.h"
#include "gdk-pixbuf/gdk-pixbuf.h"
diff --git a/gtk/gtkselection.h b/gtk/gtkselection.h
index bdb1312e1f..761d2b288a 100644
--- a/gtk/gtkselection.h
+++ b/gtk/gtkselection.h
@@ -44,28 +44,6 @@ typedef struct _GtkTargetEntry GtkTargetEntry;
#define GTK_TYPE_SELECTION_DATA (gtk_selection_data_get_type ())
#define GTK_TYPE_TARGET_LIST (gtk_target_list_get_type ())
-/* The contents of a selection are returned in a GtkSelectionData
- * structure. selection/target identify the request. type specifies
- * the type of the return; if length < 0, and the data should be
- * ignored. This structure has object semantics - no fields should be
- * modified directly, they should not be created directly, and
- * pointers to them should not be stored beyond the duration of a
- * callback. (If the last is changed, we'll need to add reference
- * counting.) The time field gives the timestamp at which the data was
- * sent.
- */
-
-struct _GtkSelectionData
-{
- GdkAtom GSEAL (selection);
- GdkAtom GSEAL (target);
- GdkAtom GSEAL (type);
- gint GSEAL (format);
- guchar *GSEAL (data);
- gint GSEAL (length);
- GdkDisplay *GSEAL (display);
-};
-
struct _GtkTargetEntry
{
gchar *target;
diff --git a/gtk/gtkselectionprivate.h b/gtk/gtkselectionprivate.h
new file mode 100644
index 0000000000..831753fd33
--- /dev/null
+++ b/gtk/gtkselectionprivate.h
@@ -0,0 +1,40 @@
+/* GTK - The GIMP Toolkit
+ *
+ * Copyright (C) 2010 Javier Jardón
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+
+/* The contents of a selection are returned in a GtkSelectionData
+ * structure. selection/target identify the request. type specifies
+ * the type of the return; if length < 0, and the data should be
+ * ignored. This structure has object semantics - no fields should be
+ * modified directly, they should not be created directly, and
+ * pointers to them should not be stored beyond the duration of a
+ * callback. (If the last is changed, we'll need to add reference
+ * counting.) The time field gives the timestamp at which the data was
+ * sent.
+ */
+
+struct _GtkSelectionData
+{
+ GdkAtom selection;
+ GdkAtom target;
+ GdkAtom type;
+ gint format;
+ guchar *data;
+ gint length;
+ GdkDisplay *display;
+};