[gtk-theme-engine-clearlooks] Handle resize grips in render_handle()
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-theme-engine-clearlooks] Handle resize grips in render_handle()
- Date: Mon, 6 Dec 2010 21:21:57 +0000 (UTC)
commit 8c2b9aea024ee7e8be297af324eb2abb619656ac
Author: Carlos Garnacho <carlosg gnome org>
Date: Tue Nov 16 00:58:40 2010 +0100
Handle resize grips in render_handle()
src/clearlooks_engine.c | 54 +++++++---------------------------------------
1 files changed, 9 insertions(+), 45 deletions(-)
---
diff --git a/src/clearlooks_engine.c b/src/clearlooks_engine.c
index 4a043a0..63c1cb2 100644
--- a/src/clearlooks_engine.c
+++ b/src/clearlooks_engine.c
@@ -434,6 +434,15 @@ clearlooks_engine_render_handle (GtkThemingEngine *engine,
style_functions->draw_handle (cr, engine, &handle,
x, y, width, height);
}
+ else if (gtk_theming_engine_has_class (engine, "grip"))
+ {
+ ResizeGripParameters grip;
+
+ grip.edge = CL_WINDOW_EDGE_SOUTH_EAST; //(ClearlooksWindowEdge)edge;
+
+ style_functions->draw_resize_grip (cr, engine, &grip,
+ x, y, width, height);
+ }
else
{
HandleParameters handle;
@@ -1215,51 +1224,6 @@ clearlooks_style_draw_hline (GtkStyle *style,
STYLE_FUNCTION(draw_menu_item_separator) (cr, colors, NULL, &separator,
x1, y, x2-x1+1, 2);
}
-
-static void
-clearlooks_style_draw_resize_grip (GtkStyle *style,
- cairo_t *cr,
- GtkStateType state_type,
- GtkWidget *widget,
- const gchar *detail,
- GdkWindowEdge edge,
- gint x,
- gint y,
- gint width,
- gint height)
-{
- ClearlooksStyle *clearlooks_style = CLEARLOOKS_STYLE (style);
- ClearlooksColors *colors = &clearlooks_style->colors;
- WidgetParameters params;
- ResizeGripParameters grip;
-
- CHECK_ARGS
-
- grip.edge = (ClearlooksWindowEdge)edge;
-
- clearlooks_set_widget_parameters (widget, style, state_type, ¶ms);
-
- STYLE_FUNCTION(draw_resize_grip) (cr, colors, ¶ms, &grip,
- x, y, width, height);
-}
-
-static void
-clearlooks_style_draw_tab (DRAW_ARGS)
-{
- ClearlooksStyle *clearlooks_style = CLEARLOOKS_STYLE (style);
- ClearlooksColors *colors = &clearlooks_style->colors;
- WidgetParameters params;
- ArrowParameters arrow;
-
- CHECK_ARGS
-
- clearlooks_set_widget_parameters (widget, style, state_type, ¶ms);
- arrow.type = CL_ARROW_COMBO;
- arrow.direction = CL_DIRECTION_DOWN;
-
- STYLE_FUNCTION(draw_arrow) (cr, colors, ¶ms, &arrow, x, y, width, height);
-}
-
#endif
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]