summaryrefslogtreecommitdiff
path: root/gdk/gdkcc.c
diff options
context:
space:
mode:
authorArturo Espinosa <unammx@src.gnome.org>1997-12-17 01:40:34 +0000
committerArturo Espinosa <unammx@src.gnome.org>1997-12-17 01:40:34 +0000
commit134466992bfcfe128307e7e61060dee751d8d6ab (patch)
treef1999201e7e1fd7d36f90f9aa0af401e37ad578e /gdk/gdkcc.c
parent585dc6d78179c7eea1b62d5cd746d69e8aec4a32 (diff)
downloadgtk+-134466992bfcfe128307e7e61060dee751d8d6ab.tar.gz
Added some extra functions to access the ColorContext toys.
federico
Diffstat (limited to 'gdk/gdkcc.c')
-rw-r--r--gdk/gdkcc.c19
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)
{