libegg r850 - in trunk: . libegg/toolpalette



Author: hasselmm
Date: Wed Jan 23 09:53:00 2008
New Revision: 850
URL: http://svn.gnome.org/viewvc/libegg?rev=850&view=rev

Log:
Avoid flickering when scrolling.

* libegg/toolpalette/eggtoolpalette.c: Do not chain-up expose-event
handler since chaining up causes flicker.
* libegg/toolpalette/TODO: Updated.


Modified:
   trunk/ChangeLog
   trunk/libegg/toolpalette/TODO
   trunk/libegg/toolpalette/eggtoolpalette.c

Modified: trunk/libegg/toolpalette/TODO
==============================================================================
--- trunk/libegg/toolpalette/TODO	(original)
+++ trunk/libegg/toolpalette/TODO	Wed Jan 23 09:53:00 2008
@@ -1,7 +1,12 @@
-* support horizontal orientation
+EggToolPalette
+
+ * implement stubs (g_return_if_reached)
+ * implement natural-size interface
+ * scroll to group, when expanding
+ * support horizontal orientation
+ * consider scrollbar size in size-request
+
+GtkToolShell:
+
 * ask tool items to apply ellipses to labels
 * left-align labels (and center icons) in both-horiz mode
-* implement stubs (g_return_if_reached)
-* avoid flickering in non-icon-only modes
-* implement natural-size interface
-* scroll to group, when expanding

Modified: trunk/libegg/toolpalette/eggtoolpalette.c
==============================================================================
--- trunk/libegg/toolpalette/eggtoolpalette.c	(original)
+++ trunk/libegg/toolpalette/eggtoolpalette.c	Wed Jan 23 09:53:00 2008
@@ -348,14 +348,15 @@
   cairo_t *cr;
   guint i;
 
-  if (GTK_WIDGET_CLASS (egg_tool_palette_parent_class)->expose_event (widget, event))
-    return TRUE;
-
   display = gdk_drawable_get_display (widget->window);
+
   if (!gdk_display_supports_composite (display))
     return FALSE;
 
   cr = gdk_cairo_create (widget->window);
+  gdk_cairo_region (cr, event->region);
+  cairo_clip (cr);
+
   cairo_push_group (cr);
 
   for (i = 0; i < palette->priv->groups_length; ++i)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]