Commit f1c32f10 authored by Alexander Larsson's avatar Alexander Larsson Committed by Matthias Clasen
Browse files

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.
parent ac7d55c9
...@@ -116,22 +116,6 @@ struct _GdkDisplay ...@@ -116,22 +116,6 @@ struct _GdkDisplay
GdkDeviceManager *GSEAL (device_manager); 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: * GdkDisplayPointerHooks:
* @get_pointer: Obtains the current pointer position and modifier state. * @get_pointer: Obtains the current pointer position and modifier state.
......
...@@ -271,6 +271,22 @@ struct _GdkWindow ...@@ -271,6 +271,22 @@ struct _GdkWindow
#define GDK_WINDOW_TYPE(d) (((GDK_WINDOW (d)))->window_type) #define GDK_WINDOW_TYPE(d) (((GDK_WINDOW (d)))->window_type)
#define GDK_WINDOW_DESTROYED(d) (GDK_WINDOW (d)->destroyed) #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 GSList *_gdk_displays;
extern gchar *_gdk_display_name; extern gchar *_gdk_display_name;
extern gint _gdk_screen_number; extern gint _gdk_screen_number;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment