[gdl] Use gtk_render_handle() instead of gtk_paint_handle()
- From: Johannes Schmid <jhs src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdl] Use gtk_render_handle() instead of gtk_paint_handle()
- Date: Thu, 9 Dec 2010 22:55:07 +0000 (UTC)
commit 93f65f47e077d718ae430b9729c267e58c00b11e
Author: Johannes Schmid <jhs gnome org>
Date: Thu Dec 9 23:52:56 2010 +0100
Use gtk_render_handle() instead of gtk_paint_handle()
gdl/gdl-dock-item-grip.c | 12 ++++--------
gdl/gdl-dock-tablabel.c | 8 ++------
2 files changed, 6 insertions(+), 14 deletions(-)
---
diff --git a/gdl/gdl-dock-item-grip.c b/gdl/gdl-dock-item-grip.c
index c3adec2..72b1bdd 100644
--- a/gdl/gdl-dock-item-grip.c
+++ b/gdl/gdl-dock-item-grip.c
@@ -114,15 +114,11 @@ gdl_dock_item_grip_draw (GtkWidget *widget,
if (grip->_priv->handle_shown)
{
if (gtk_cairo_should_draw_window (cr, gtk_widget_get_window (widget)))
- {
- gtk_paint_handle (gtk_widget_get_style (widget),
+ {
+ gtk_render_handle (gtk_widget_get_style_context (widget),
cr,
- gtk_widget_get_state (widget),
- GTK_SHADOW_NONE,
- widget,
- "handlebox", handle_area.x, handle_area.y,
- handle_area.width, handle_area.height,
- GTK_ORIENTATION_VERTICAL);
+ handle_area.x, handle_area.y,
+ handle_area.width, handle_area.height);
}
diff --git a/gdl/gdl-dock-tablabel.c b/gdl/gdl-dock-tablabel.c
index abdf19f..ffdb78c 100644
--- a/gdl/gdl-dock-tablabel.c
+++ b/gdl/gdl-dock-tablabel.c
@@ -401,12 +401,8 @@ gdl_dock_tablabel_paint (GtkWidget *widget,
if (gtk_cairo_should_draw_window (cr, gtk_widget_get_window (widget)))
{
- gtk_paint_handle (gtk_widget_get_style (widget), cr,
- tablabel->active ? GTK_STATE_NORMAL : GTK_STATE_ACTIVE,
- GTK_SHADOW_NONE,
- widget, "dock-tablabel",
- rect.x, rect.y, rect.width, rect.height,
- GTK_ORIENTATION_VERTICAL);
+ gtk_render_handle (gtk_widget_get_style_context (widget),
+ cr, rect.x, rect.y, rect.width, rect.height);
};
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]