summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2010-11-15 23:59:52 -0500
committerSergey V. Udaltsov <svu@gnome.org>2010-11-29 21:55:13 +0000
commit29729d1d494d5c600e0f1c76c9a64979dc08959b (patch)
tree8cdc518b6c39cde6c904473fe73beae701e682a1
parent3b0c8935a0b01299655fb90b66850d560786d608 (diff)
downloadlibgnomekbd-29729d1d494d5c600e0f1c76c9a64979dc08959b.tar.gz
Make build with GtkStyleContext
Quick port from gtk_paint_ to gtk_render_.
-rw-r--r--libgnomekbd/gkbd-keyboard-drawing.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/libgnomekbd/gkbd-keyboard-drawing.c b/libgnomekbd/gkbd-keyboard-drawing.c
index 01d8281..3b9a800 100644
--- a/libgnomekbd/gkbd-keyboard-drawing.c
+++ b/libgnomekbd/gkbd-keyboard-drawing.c
@@ -1384,8 +1384,6 @@ static gboolean
draw (GtkWidget * widget,
cairo_t *cr, GkbdKeyboardDrawing * drawing)
{
- GtkAllocation allocation;
-
if (!drawing->xkb)
return FALSE;
@@ -1396,13 +1394,10 @@ draw (GtkWidget * widget,
cairo_paint (cr);
if (gtk_widget_has_focus (widget)) {
- gtk_widget_get_allocation (widget, &allocation);
- gtk_paint_focus (gtk_widget_get_style (widget),
- cr,
- gtk_widget_get_state (widget),
- widget, "keyboard-drawing",
- 0, 0, allocation.width,
- allocation.height);
+ gtk_render_focus (gtk_widget_get_style_context (widget),
+ cr, 0, 0,
+ gtk_widget_get_allocated_width (widget),
+ gtk_widget_get_allocated_height (widget));
}
return FALSE;