[glide] Use GTK widget color for highlight in slidebox
- From: Robert Carr <racarr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glide] Use GTK widget color for highlight in slidebox
- Date: Thu, 6 May 2010 08:48:37 +0000 (UTC)
commit 0a53a80ec5cd0769a22580f515369d7d87be6687
Author: Robert Carr <racarr Valentine localdomain>
Date: Thu May 6 03:17:41 2010 -0400
Use GTK widget color for highlight in slidebox
libglide/glide-slide-button.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/libglide/glide-slide-button.c b/libglide/glide-slide-button.c
index 6304808..667e348 100644
--- a/libglide/glide-slide-button.c
+++ b/libglide/glide-slide-button.c
@@ -19,6 +19,8 @@
#include "glide-slide-button.h"
#include "glide-slide-button-priv.h"
+#include "glide-cairo-util.h"
+
#define GLIDE_SLIDE_BUTTON_GET_PRIVATE(object)(G_TYPE_INSTANCE_GET_PRIVATE ((object), GLIDE_TYPE_SLIDE_BUTTON, GlideSlideButtonPrivate))
G_DEFINE_TYPE(GlideSlideButton, glide_slide_button, GTK_TYPE_BUTTON);
@@ -55,8 +57,8 @@ glide_slide_button_drawing_area_expose (GtkWidget *drawing_area,
if (CLUTTER_ACTOR_IS_VISIBLE (b->priv->slide))
{
- cairo_set_source_rgba (cr, 1, 0, 0, 1);
- cairo_set_line_width (cr, 2);
+ glide_cairo_set_fg_color (cr, drawing_area, GTK_STATE_NORMAL);
+ cairo_set_line_width (cr, 3);
cairo_rectangle (cr, 0, 0, 80, 60);
cairo_stroke (cr);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]