Implement window property vfuncs for quartz

This commit is contained in:
Matthias Clasen 2010-12-21 21:29:50 -05:00 committed by Kristian Rietveld
parent 168b3c13b7
commit 547d674ce5
3 changed files with 42 additions and 19 deletions

View File

@ -256,5 +256,25 @@ gboolean _gdk_quartz_window_simulate_button (GdkWindow *window,
GdkModifierType modifiers,
GdkEventType button_pressrelease);
gboolean _gdk_quartz_window_get_property (GdkWindow *window,
GdkAtom property,
GdkAtom type,
gulong offset,
gulong length,
gint pdelete,
GdkAtom *actual_property_type,
gint *actual_format_type,
gint *actual_length,
guchar **data);
void _gdk_quartz_window_change_property (GdkWindow *window,
GdkAtom property,
GdkAtom type,
gint format,
GdkPropMode mode,
const guchar *data,
gint nelements);
void _gdk_quartz_window_delete_property (GdkWindow *window,
GdkAtom property);
#endif /* __GDK_PRIVATE_QUARTZ_H__ */

View File

@ -171,36 +171,36 @@ _gdk_quartz_display_manager_get_atom_name (GdkDisplayManager *manager,
}
void
gdk_property_delete (GdkWindow *window,
GdkAtom property)
_gdk_quartz_window_delete_property (GdkWindow *window,
GdkAtom property)
{
/* FIXME: Implement */
}
gint
gdk_property_get (GdkWindow *window,
GdkAtom property,
GdkAtom type,
gulong offset,
gulong length,
gint pdelete,
GdkAtom *actual_property_type,
gint *actual_format_type,
gint *actual_length,
guchar **data)
_gdk_quartz_window_get_property (GdkWindow *window,
GdkAtom property,
GdkAtom type,
gulong offset,
gulong length,
gint pdelete,
GdkAtom *actual_property_type,
gint *actual_format_type,
gint *actual_length,
guchar **data)
{
/* FIXME: Implement */
return 0;
}
void
gdk_property_change (GdkWindow *window,
GdkAtom property,
GdkAtom type,
gint format,
GdkPropMode mode,
const guchar *data,
gint nelements)
_gdk_quartz_window_change_property (GdkWindow *window,
GdkAtom property,
GdkAtom type,
gint format,
GdkPropMode mode,
const guchar *data,
gint nelements)
{
/* FIXME: Implement */
}

View File

@ -3104,6 +3104,9 @@ gdk_root_window_impl_quartz_class_init (GdkRootWindowImplQuartzClass *klass)
impl_class->sync_rendering = _gdk_quartz_window_sync_rendering;
impl_class->simulate_key = _gdk_quartz_window_simulate_key;
impl_class->simulate_button = _gdk_quartz_window_simulate_button;
impl_class->get_property = _gdk_quartz_window_get_property;
impl_class->change_property = _gdk_quartz_window_change_property;
impl_class->delete_property = _gdk_quartz_window_delete_property;
}
static void