[Goodies-commits] r3945 - ristretto/trunk/src
Stephan Arts
stephan at xfce.org
Mon Feb 11 14:09:57 CET 2008
Author: stephan
Date: 2008-02-11 13:09:57 +0000 (Mon, 11 Feb 2008)
New Revision: 3945
Modified:
ristretto/trunk/src/thumbnail.c
ristretto/trunk/src/thumbnail_bar.c
Log:
Improve expose behaviour
Modified: ristretto/trunk/src/thumbnail.c
===================================================================
--- ristretto/trunk/src/thumbnail.c 2008-02-11 12:43:48 UTC (rev 3944)
+++ ristretto/trunk/src/thumbnail.c 2008-02-11 13:09:57 UTC (rev 3945)
@@ -180,6 +180,7 @@
GdkPixbuf *pixbuf = rstto_navigator_entry_get_thumb(
thumb->priv->entry,
widget->allocation.height - 4);
+
gtk_paint_box(widget->style,
widget->window,
state,
@@ -193,7 +194,7 @@
if(pixbuf)
{
gdk_draw_pixbuf(GDK_DRAWABLE(widget->window),
- widget->style->fg_gc[state],
+ NULL,
pixbuf,
0, 0,
(0.5 * (widget->allocation.width - gdk_pixbuf_get_width(pixbuf))) + widget->allocation.x,
Modified: ristretto/trunk/src/thumbnail_bar.c
===================================================================
--- ristretto/trunk/src/thumbnail_bar.c 2008-02-11 12:43:48 UTC (rev 3944)
+++ ristretto/trunk/src/thumbnail_bar.c 2008-02-11 13:09:57 UTC (rev 3945)
@@ -353,11 +353,13 @@
GdkEventExpose *n_ex = g_new0(GdkEventExpose, 1);
+ gint border_width = GTK_CONTAINER(bar)->border_width;
+
n_ex->type = ex->type;
n_ex->window = ex->window;
n_ex->send_event = ex->send_event;
- n_ex->area.x = 0;
- n_ex->area.y = 0;
+ n_ex->area.x = border_width;
+ n_ex->area.y = border_width;
n_ex->area.width = ex->area.width;
n_ex->area.height = ex->area.height;
n_ex->count = ex->count;
More information about the Goodies-commits
mailing list