[Goodies-commits] r2957 - ristretto/trunk/src
Stephan Arts
stephan at xfce.org
Tue Aug 7 02:42:25 CEST 2007
Author: stephan
Date: 2007-08-07 00:42:24 +0000 (Tue, 07 Aug 2007)
New Revision: 2957
Modified:
ristretto/trunk/src/thumbnail_viewer.c
Log:
thumbnail viewer can now be themed;
Modified: ristretto/trunk/src/thumbnail_viewer.c
===================================================================
--- ristretto/trunk/src/thumbnail_viewer.c 2007-08-07 00:12:11 UTC (rev 2956)
+++ ristretto/trunk/src/thumbnail_viewer.c 2007-08-07 00:42:24 UTC (rev 2957)
@@ -246,25 +246,33 @@
if(viewer->priv->orientation == GTK_ORIENTATION_HORIZONTAL)
{
- if(current_entry == entry)
- {
- color.pixel = 0xff0000ff;
- }
- else
- {
- color.pixel = 0xffffffff;
- }
gdk_gc_set_foreground(gc, &color);
gdk_draw_rectangle(GDK_DRAWABLE(widget->window),
gc,
TRUE,
(i*74), 0, 74, 74);
-
+
+ if(current_entry == entry)
+ gtk_paint_box(widget->style,
+ widget->window,
+ GTK_STATE_SELECTED,
+ GTK_SHADOW_NONE,
+ NULL,NULL,NULL,
+ (i*74)+4, 4, 66, 50);
+ else
+ gtk_paint_box(widget->style,
+ widget->window,
+ GTK_STATE_NORMAL,
+ GTK_SHADOW_NONE,
+ NULL,NULL,NULL,
+ (i*74)+4, 4, 66, 50);
+ /*
gdk_draw_rectangle(GDK_DRAWABLE(widget->window),
gc_1,
TRUE,
(i*74)+4, 4, 66 , 50);
+ */
if(pixbuf)
gdk_draw_pixbuf(GDK_DRAWABLE(widget->window),
More information about the Goodies-commits
mailing list