Hide GdkScreen too

This commit is contained in:
Matthias Clasen 2010-12-10 09:46:35 -05:00
parent 3412d7a23a
commit c7559f57ed
3 changed files with 16 additions and 24 deletions

View File

@ -316,6 +316,7 @@ struct _GdkDisplayClass
gboolean is_error);
};
struct _GdkKeymapClass
{
GObjectClass parent_class;
@ -355,6 +356,16 @@ struct _GdkKeymapClass
void (*state_changed) (GdkKeymap *keymap);
};
struct _GdkScreen
{
GObject parent_instance;
guint closed : 1;
cairo_font_options_t *font_options;
double resolution; /* pixels/points scale factor for fonts */
};
struct _GdkScreenClass
{
GObjectClass parent_class;

View File

@ -43,25 +43,6 @@ typedef struct _GdkScreenClass GdkScreenClass;
#define GDK_IS_SCREEN_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_SCREEN))
#define GDK_SCREEN_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_SCREEN, GdkScreenClass))
/**
* GdkScreen:
*
* This is a currently just a placeholder typedef for the first argument of
* the #GdkPointerHooks.window_at_pointer function in #GdkPointerHooks.
* It will be used when GDK gets multihead support.
*
* Since: 2.2
*/
struct _GdkScreen
{
GObject parent_instance;
guint GSEAL (closed) : 1;
cairo_font_options_t *GSEAL (font_options);
double GSEAL (resolution); /* pixels/points scale factor for fonts */
};
GType gdk_screen_get_type (void) G_GNUC_CONST;
GdkVisual* gdk_screen_get_system_visual (GdkScreen *screen);
GdkVisual * gdk_screen_get_rgba_visual (GdkScreen *screen);
@ -118,4 +99,4 @@ GList *gdk_screen_get_window_stack (GdkScreen *screen);
G_END_DECLS
#endif /* __GDK_SCREEN_H__ */
#endif /* __GDK_SCREEN_H__ */

View File

@ -134,9 +134,9 @@ typedef guint32 GdkNativeWindow;
/* Forward declarations of commonly used types
*/
typedef struct _GdkColor GdkColor;
typedef struct _GdkColor GdkColor;
typedef struct _GdkRGBA GdkRGBA;
typedef struct _GdkCursor GdkCursor;
typedef struct _GdkCursor GdkCursor;
typedef struct _GdkVisual GdkVisual;
/**
@ -145,8 +145,8 @@ typedef struct _GdkVisual GdkVisual;
* An opaque structure representing an onscreen drawable.
*/
typedef struct _GdkWindow GdkWindow;
typedef struct _GdkDisplay GdkDisplay;
typedef struct _GdkScreen GdkScreen;
typedef struct _GdkDisplay GdkDisplay;
typedef struct _GdkScreen GdkScreen;
typedef struct GdkAppLaunchContext GdkAppLaunchContext;
/**