[gtk+/gdk-backend: 2/91] Hide GdkDisplayClass from public header
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gdk-backend: 2/91] Hide GdkDisplayClass from public header
- Date: Sat, 18 Dec 2010 01:05:59 +0000 (UTC)
commit 4172ffcaddba9642fd712f2719a22bb3dae3024a
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 381f45e..bd99b1d 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 c6173a7..850e3ae 100644
--- a/gdk/gdkinternals.h
+++ b/gdk/gdkinternals.h
@@ -271,6 +271,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]