Commit 9c5d3279 authored by Arturo Espinosa's avatar Arturo Espinosa
Browse files

Added gdk_color_context_get_visual() function.

parent 4c530ae5
......@@ -681,7 +681,8 @@ void gdk_color_context_get_pixels_incremental (GdkColorContext *cc,
gint gdk_color_context_get_num_colors (GdkColorContext *cc);
gint gdk_color_context_get_depth (GdkColorContext *cc);
GdkColorContextMode gdk_color_context_get_mode (GdkColorContext *cc);
GdkColorContextMode gdk_color_context_get_mode (GdkColorContext *cc);
GdkVisual *gdk_color_context_get_visual (GdkColorContext *cc);
gint gdk_color_context_query_color (GdkColorContext *cc,
GdkColor *color);
gint gdk_color_context_query_colors (GdkColorContext *cc,
......
......@@ -1336,24 +1336,32 @@ gdk_color_context_get_num_colors(GdkColorContext *cc)
}
gint
gdk_color_context_get_depth (GdkColorContext *cc)
gdk_color_context_get_depth(GdkColorContext *cc)
{
GdkColorContextPrivate *ccp = (GdkColorContextPrivate *) cc;
g_assert (cc != NULL);
g_assert(cc != NULL);
return ccp->visual->depth;
}
GdkColorContextMode
gdk_color_context_get_mode (GdkColorContext *cc)
gdk_color_context_get_mode(GdkColorContext *cc)
{
g_assert (cc != NULL);
g_assert(cc != NULL);
return ((GdkColorContextPrivate *) cc)->mode;
}
GdkVisual *
gdk_color_context_get_visual(GdkColorContext *cc)
{
g_assert(cc != NULL);
return ((GdkColorContextPrivate *) cc)->visual;
}
gint
gdk_color_context_query_color(GdkColorContext *cc,
GdkColor *color)
......
......@@ -1336,24 +1336,32 @@ gdk_color_context_get_num_colors(GdkColorContext *cc)
}
gint
gdk_color_context_get_depth (GdkColorContext *cc)
gdk_color_context_get_depth(GdkColorContext *cc)
{
GdkColorContextPrivate *ccp = (GdkColorContextPrivate *) cc;
g_assert (cc != NULL);
g_assert(cc != NULL);
return ccp->visual->depth;
}
GdkColorContextMode
gdk_color_context_get_mode (GdkColorContext *cc)
gdk_color_context_get_mode(GdkColorContext *cc)
{
g_assert (cc != NULL);
g_assert(cc != NULL);
return ((GdkColorContextPrivate *) cc)->mode;
}
GdkVisual *
gdk_color_context_get_visual(GdkColorContext *cc)
{
g_assert(cc != NULL);
return ((GdkColorContextPrivate *) cc)->visual;
}
gint
gdk_color_context_query_color(GdkColorContext *cc,
GdkColor *color)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment