[gtk+/gdk-backend: 2/3] Hide GdkDisplayClass from public header
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gdk-backend: 2/3] Hide GdkDisplayClass from public header
- Date: Sun, 5 Dec 2010 22:12:10 +0000 (UTC)
commit 562a17174588e3bd0933df440acf0808bd347cf4
Author: Alexander Larsson <alexl redhat com>
Date: Sun Dec 5 22:12:48 2010 +0100
Hide GdkDisplayClass from public header
There is no need for apps to access this class, as its only implemented
in the gdk backends, and we want to be free to change it later.
gdk/gdkdisplay.h | 16 ----------------
gdk/gdkinternals.h | 16 ++++++++++++++++
2 files changed, 16 insertions(+), 16 deletions(-)
---
diff --git a/gdk/gdkdisplay.h b/gdk/gdkdisplay.h
index 17afa4b..dfbe8a1 100644
--- a/gdk/gdkdisplay.h
+++ b/gdk/gdkdisplay.h
@@ -116,22 +116,6 @@ struct _GdkDisplay
GdkDeviceManager *GSEAL (device_manager);
};
-struct _GdkDisplayClass
-{
- GObjectClass parent_class;
-
- G_CONST_RETURN gchar * (*get_display_name) (GdkDisplay *display);
- gint (*get_n_screens) (GdkDisplay *display);
- GdkScreen * (*get_screen) (GdkDisplay *display,
- gint screen_num);
- GdkScreen * (*get_default_screen) (GdkDisplay *display);
-
-
- /* Signals */
- void (*closed) (GdkDisplay *display,
- gboolean is_error);
-};
-
/**
* GdkDisplayPointerHooks:
* @get_pointer: Obtains the current pointer position and modifier state.
diff --git a/gdk/gdkinternals.h b/gdk/gdkinternals.h
index a0063cd..062cb6a 100644
--- a/gdk/gdkinternals.h
+++ b/gdk/gdkinternals.h
@@ -268,6 +268,22 @@ struct _GdkWindow
#define GDK_WINDOW_TYPE(d) (((GDK_WINDOW (d)))->window_type)
#define GDK_WINDOW_DESTROYED(d) (GDK_WINDOW (d)->destroyed)
+struct _GdkDisplayClass
+{
+ GObjectClass parent_class;
+
+ G_CONST_RETURN gchar * (*get_name) (GdkDisplay *display);
+ gint (*get_n_screens) (GdkDisplay *display);
+ GdkScreen * (*get_screen) (GdkDisplay *display,
+ gint screen_num);
+ GdkScreen * (*get_default_screen) (GdkDisplay *display);
+
+
+ /* Signals */
+ void (*closed) (GdkDisplay *display,
+ gboolean is_error);
+};
+
extern GSList *_gdk_displays;
extern gchar *_gdk_display_name;
extern gint _gdk_screen_number;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]