From ce823f5b284404aecb2b8fe388dd0e3df10fe84d Mon Sep 17 00:00:00 2001 From: Richard Hult Date: Mon, 27 Mar 2006 10:47:29 +0000 Subject: [PATCH] Add more stubs. 2006-03-27 Richard Hult * gdk/quartz: Add more stubs. --- ChangeLog | 4 ++ ChangeLog.pre-2-10 | 4 ++ gdk/quartz/gdkcolor-quartz.c | 15 +++++++ gdk/quartz/gdkdisplay-quartz.c | 10 +++++ gdk/quartz/gdkdnd-quartz.c | 7 ++++ gdk/quartz/gdkfont-quartz.c | 20 ++++++++++ gdk/quartz/gdkgc-quartz.c | 6 +++ gdk/quartz/gdkkeys-quartz.c | 14 +++++++ gdk/quartz/gdkmain-quartz.c | 6 +++ gdk/quartz/gdkpixmap-quartz.c | 39 ++++++++++++++++++ gdk/quartz/gdkproperty-quartz.c | 5 ++- gdk/quartz/gdkwindow-quartz.c | 70 +++++++++++++++++++++++++++++++++ 12 files changed, 198 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6c1313473b..a97e6d790c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2006-03-27 Richard Hult + + * gdk/quartz: Add more stubs. + 2006-03-27 Michael Natterer * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_get_property): diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 6c1313473b..a97e6d790c 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,7 @@ +2006-03-27 Richard Hult + + * gdk/quartz: Add more stubs. + 2006-03-27 Michael Natterer * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_get_property): diff --git a/gdk/quartz/gdkcolor-quartz.c b/gdk/quartz/gdkcolor-quartz.c index 92a9e3f2a6..bc1d200971 100644 --- a/gdk/quartz/gdkcolor-quartz.c +++ b/gdk/quartz/gdkcolor-quartz.c @@ -99,6 +99,13 @@ gdk_screen_get_rgba_colormap (GdkScreen *screen) return colormap; } +gint +gdk_colormap_get_system_size (void) +{ + /* FIXME: Implement */ + return 0; +} + void gdk_colormap_change (GdkColormap *colormap, gint ncolors) @@ -193,3 +200,11 @@ _gdk_quartz_set_context_stroke_color_from_pixel (CGContextRef context, GdkColorm CGContextSetRGBStrokeColor (context, red, green, blue, 1.0); } +gboolean +gdk_color_change (GdkColormap *colormap, + GdkColor *color) +{ + /* FIXME: Implement */ + return FALSE; +} + diff --git a/gdk/quartz/gdkdisplay-quartz.c b/gdk/quartz/gdkdisplay-quartz.c index 816275ce95..565cab568f 100644 --- a/gdk/quartz/gdkdisplay-quartz.c +++ b/gdk/quartz/gdkdisplay-quartz.c @@ -23,6 +23,16 @@ #include "gdk.h" #include "gdkprivate-quartz.h" +GdkWindow * +gdk_display_get_default_group (GdkDisplay *display) +{ + g_return_val_if_fail (GDK_IS_DISPLAY (display), NULL); + + /* FIXME: Implement */ + + return NULL; +} + void _gdk_windowing_set_default_display (GdkDisplay *display) { diff --git a/gdk/quartz/gdkdnd-quartz.c b/gdk/quartz/gdkdnd-quartz.c index 1f8599498d..69e3f705fd 100644 --- a/gdk/quartz/gdkdnd-quartz.c +++ b/gdk/quartz/gdkdnd-quartz.c @@ -203,3 +203,10 @@ gdk_drag_get_selection (GdkDragContext *context) /* FIXME: Implement */ return GDK_NONE; } + +gboolean +gdk_drag_drop_succeeded (GdkDragContext *context) +{ + /* FIXME: Implement */ + return FALSE; +} diff --git a/gdk/quartz/gdkfont-quartz.c b/gdk/quartz/gdkfont-quartz.c index e179bd4c77..0294aa2b2b 100644 --- a/gdk/quartz/gdkfont-quartz.c +++ b/gdk/quartz/gdkfont-quartz.c @@ -39,6 +39,19 @@ gdk_font_from_description_for_display (GdkDisplay *display, return NULL; } +GdkFont * +gdk_fontset_load_for_display (GdkDisplay *display, + const gchar *fontset_name) +{ + return NULL; +} + +GdkFont* +gdk_fontset_load (const gchar *fontset_name) +{ + return NULL; +} + gint gdk_text_width (GdkFont *font, const gchar *text, @@ -112,3 +125,10 @@ gdk_font_equal (const GdkFont *fonta, /* FIXME: Implement */ return FALSE; } + +GdkDisplay* +gdk_font_get_display (GdkFont* font) +{ + /* FIXME: Implement */ + return NULL; +} diff --git a/gdk/quartz/gdkgc-quartz.c b/gdk/quartz/gdkgc-quartz.c index ba21600520..2f687e768b 100644 --- a/gdk/quartz/gdkgc-quartz.c +++ b/gdk/quartz/gdkgc-quartz.c @@ -163,6 +163,12 @@ _gdk_windowing_gc_copy (GdkGC *dst_gc, /* FIXME: Implement */ } +GdkScreen * +gdk_gc_get_screen (GdkGC *gc) +{ + return NULL; +} + void _gdk_quartz_update_context_from_gc (CGContextRef context, GdkGC *gc) { diff --git a/gdk/quartz/gdkkeys-quartz.c b/gdk/quartz/gdkkeys-quartz.c index 4543457057..67a8d793b6 100644 --- a/gdk/quartz/gdkkeys-quartz.c +++ b/gdk/quartz/gdkkeys-quartz.c @@ -475,6 +475,20 @@ gdk_keymap_get_entries_for_keycode (GdkKeymap *keymap, return *n_entries > 0; } +guint +gdk_keymap_lookup_key (GdkKeymap *keymap, + const GdkKeymapKey *key) +{ + g_return_val_if_fail (keymap == NULL || GDK_IS_KEYMAP (keymap), 0); + g_return_val_if_fail (key != NULL, 0); + g_return_val_if_fail (key->group < 4, 0); + + /* FIXME: Implement */ + + return 0; +} + + #define GET_KEYVAL(keycode, group, level) (keyval_array[(keycode * KEYVALS_PER_KEYCODE + group * 2 + level)]) static guint diff --git a/gdk/quartz/gdkmain-quartz.c b/gdk/quartz/gdkmain-quartz.c index a81eb9f30d..328b92934e 100644 --- a/gdk/quartz/gdkmain-quartz.c +++ b/gdk/quartz/gdkmain-quartz.c @@ -50,6 +50,12 @@ gdk_error_trap_pop (void) return 0; } +gchar * +gdk_get_display (void) +{ + return g_strdup (gdk_display_get_name (gdk_display_get_default ())); +} + void gdk_notify_startup_complete (void) { diff --git a/gdk/quartz/gdkpixmap-quartz.c b/gdk/quartz/gdkpixmap-quartz.c index b1297f770d..3dc7790531 100644 --- a/gdk/quartz/gdkpixmap-quartz.c +++ b/gdk/quartz/gdkpixmap-quartz.c @@ -230,3 +230,42 @@ gdk_bitmap_create_from_data (GdkDrawable *window, return pixmap; } + +GdkPixmap* +gdk_pixmap_create_from_data (GdkDrawable *drawable, + const gchar *data, + gint width, + gint height, + gint depth, + const GdkColor *fg, + const GdkColor *bg) +{ + /* FIXME: Implement */ + return NULL; +} + +GdkPixmap * +gdk_pixmap_foreign_new_for_display (GdkDisplay *display, + GdkNativeWindow anid) +{ + return NULL; +} + +GdkPixmap* +gdk_pixmap_foreign_new (GdkNativeWindow anid) +{ + return NULL; +} + +GdkPixmap* +gdk_pixmap_lookup (GdkNativeWindow anid) +{ + return NULL; +} + +GdkPixmap* +gdk_pixmap_lookup_for_display (GdkDisplay *display, GdkNativeWindow anid) +{ + g_return_val_if_fail (GDK_IS_DISPLAY (display), NULL); + return NULL; +} diff --git a/gdk/quartz/gdkproperty-quartz.c b/gdk/quartz/gdkproperty-quartz.c index c006c195f1..db1548d4c0 100644 --- a/gdk/quartz/gdkproperty-quartz.c +++ b/gdk/quartz/gdkproperty-quartz.c @@ -164,8 +164,9 @@ gdk_atom_intern_static_string (const gchar *atom_name) gchar * gdk_atom_name (GdkAtom atom) { - if (!atoms_to_names) - return NULL; + ensure_atom_tables (); + //if (!atoms_to_names) + // return NULL; if (GPOINTER_TO_INT (atom) >= atoms_to_names->len) return NULL; diff --git a/gdk/quartz/gdkwindow-quartz.c b/gdk/quartz/gdkwindow-quartz.c index 00694d2cf0..1f39743f97 100644 --- a/gdk/quartz/gdkwindow-quartz.c +++ b/gdk/quartz/gdkwindow-quartz.c @@ -1014,6 +1014,13 @@ gdk_window_set_child_input_shapes (GdkWindow *window) /* FIXME: IMplement */ } +void +gdk_window_set_override_redirect (GdkWindow *window, + gboolean override_redirect) +{ + /* FIXME: Implement */ +} + void gdk_window_set_accept_focus (GdkWindow *window, gboolean accept_focus) @@ -1021,12 +1028,36 @@ gdk_window_set_accept_focus (GdkWindow *window, /* FIXME: Implement */ } +void +gdk_window_set_child_shapes (GdkWindow *window) +{ + g_return_if_fail (GDK_IS_WINDOW (window)); + + /* FIXME: Implement */ +} + +void +gdk_window_merge_child_shapes (GdkWindow *window) +{ + g_return_if_fail (GDK_IS_WINDOW (window)); + + /* FIXME: Implement */ +} + void gdk_window_merge_child_input_shapes (GdkWindow *window) { /* FIXME: Implement */ } +gboolean +gdk_window_set_static_gravities (GdkWindow *window, + gboolean use_static) +{ + /* FIXME: Implement */ + return FALSE; +} + void gdk_window_set_focus_on_map (GdkWindow *window, gboolean focus_on_map) @@ -1065,6 +1096,19 @@ gdk_window_focus (GdkWindow *window, /* FIXME: Implement */ } +void +gdk_window_set_hints (GdkWindow *window, + gint x, + gint y, + gint min_width, + gint min_height, + gint max_width, + gint max_height, + gint flags) +{ + /* FIXME: Implement */ +} + void gdk_window_set_type_hint (GdkWindow *window, GdkWindowTypeHint hint) @@ -1149,6 +1193,14 @@ gdk_window_set_decorations (GdkWindow *window, /* FIXME: Implement */ } +gboolean +gdk_window_get_decorations(GdkWindow *window, + GdkWMDecoration *decorations) +{ + /* FIXME: Implement */ + return FALSE; +} + void gdk_window_set_functions (GdkWindow *window, GdkWMFunction functions) @@ -1273,6 +1325,24 @@ gdk_window_set_keep_below (GdkWindow *window, gboolean setting) /* FIXME: Implement */ } +GdkWindow * +gdk_window_get_group (GdkWindow *window) +{ + g_return_val_if_fail (GDK_IS_WINDOW (window), NULL); + g_return_val_if_fail (GDK_WINDOW_TYPE (window) != GDK_WINDOW_CHILD, NULL); + + /* FIXME: Implement */ + + return NULL; +} + +void +gdk_window_set_group (GdkWindow *window, + GdkWindow *leader) +{ + /* FIXME: Implement */ +} + GdkWindow* gdk_window_foreign_new_for_display (GdkDisplay *display, GdkNativeWindow anid)