Revision: 6963
Author: nogu.dev
Date: Thu Feb 17 02:07:06 2011
Log: * helper/toolbar-standalone-gtk.c
- (handle_draw_cb): Fix coordinates and remove unused "rect".
http://code.google.com/p/uim/source/detail?r=6963
Modified:
/trunk/helper/toolbar-standalone-gtk.c
=======================================
--- /trunk/helper/toolbar-standalone-gtk.c Sun Feb 13 07:02:45 2011
+++ /trunk/helper/toolbar-standalone-gtk.c Thu Feb 17 02:07:06 2011
@@ -193,25 +193,17 @@
}
#if GTK_CHECK_VERSION(2, 90, 0)
-
static gboolean
handle_draw_cb(GtkWidget *widget, cairo_t *cr)
{
- GdkRectangle rect;
- GtkAllocation allocation;
-
- if (gdk_cairo_get_clip_rectangle(cr, &rect))
- return FALSE;
-
- gtk_widget_get_allocation(widget, &allocation);
gtk_render_handle(gtk_widget_get_style_context(widget), cr,
- allocation.x, allocation.y,
- allocation.width, allocation.height);
+ 0, 0,
+ gtk_widget_get_allocated_width(widget),
+ gtk_widget_get_allocated_height(widget));
return FALSE;
}
#else
-
static gboolean
handle_expose_event_cb(GtkWidget *widget, GdkEventExpose *event)
{
@@ -237,7 +229,6 @@
return FALSE;
}
-
#endif
static void