Code

Switch to widget state for painting
authorjoncruz <joncruz@users.sourceforge.net>
Mon, 23 Mar 2009 03:16:48 +0000 (03:16 +0000)
committerjoncruz <joncruz@users.sourceforge.net>
Mon, 23 Mar 2009 03:16:48 +0000 (03:16 +0000)
src/widgets/eek-preview.cpp

index 2d9c064e029e56a978f03fd9074b3557ecc18e0e..7d408c689c57219c9dc9d2135157fa671ee051e6 100644 (file)
@@ -350,7 +350,7 @@ gboolean eek_preview_expose_event( GtkWidget* widget, GdkEventExpose* event )
                 }
                 gtk_paint_check( style,
                                  widget->window,
-                                 GTK_STATE_SELECTED/* (GtkStateType)widget->state*/,
+                                 (GtkStateType)widget->state,
                                  GTK_SHADOW_ETCHED_OUT,
                                  NULL,
                                  widget,
@@ -368,7 +368,7 @@ gboolean eek_preview_expose_event( GtkWidget* widget, GdkEventExpose* event )
                 }
                 gtk_paint_diamond( style,
                                    widget->window,
-                                   GTK_STATE_SELECTED/* (GtkStateType)widget->state*/,
+                                   (GtkStateType)widget->state,
                                    GTK_SHADOW_ETCHED_OUT,
                                    NULL,
                                    widget,