diff options
author | Arturo Espinosa <unammx@src.gnome.org> | 1997-12-17 01:40:34 +0000 |
---|---|---|
committer | Arturo Espinosa <unammx@src.gnome.org> | 1997-12-17 01:40:34 +0000 |
commit | 134466992bfcfe128307e7e61060dee751d8d6ab (patch) | |
tree | f1999201e7e1fd7d36f90f9aa0af401e37ad578e /gdk/gdkcc.c | |
parent | 585dc6d78179c7eea1b62d5cd746d69e8aec4a32 (diff) | |
download | gtk+-134466992bfcfe128307e7e61060dee751d8d6ab.tar.gz |
Added some extra functions to access the ColorContext toys.
federico
Diffstat (limited to 'gdk/gdkcc.c')
-rw-r--r-- | gdk/gdkcc.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/gdk/gdkcc.c b/gdk/gdkcc.c index 0b089208d2..a56a852215 100644 --- a/gdk/gdkcc.c +++ b/gdk/gdkcc.c @@ -1336,6 +1336,25 @@ gdk_color_context_get_num_colors(GdkColorContext *cc) } gint +gdk_color_context_get_depth (GdkColorContext *cc) +{ + GdkColorContextPrivate *ccp = (GdkColorContextPrivate *) cc; + + g_assert (cc != NULL); + + return ccp->visual->depth; +} + +GdkColorContextMode +gdk_color_context_get_mode (GdkColorContext *cc) +{ + g_assert (cc != NULL); + + return ((GdkColorContextPrivate *) cc)->mode; + +} + +gint gdk_color_context_query_color(GdkColorContext *cc, GdkColor *color) { |