[gnome-control-center] wacom: Set the text frame colour to be white
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] wacom: Set the text frame colour to be white
- Date: Wed, 11 Jan 2012 19:28:22 +0000 (UTC)
commit 4d7bb6141116fac0a559b333699f22f3ab9bc57b
Author: Bastien Nocera <hadess hadess net>
Date: Wed Jan 11 18:20:27 2012 +0000
wacom: Set the text frame colour to be white
panels/wacom/calibrator/gui_gtk.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/panels/wacom/calibrator/gui_gtk.c b/panels/wacom/calibrator/gui_gtk.c
index 6166208..6a37868 100644
--- a/panels/wacom/calibrator/gui_gtk.c
+++ b/panels/wacom/calibrator/gui_gtk.c
@@ -116,6 +116,8 @@ draw(GtkWidget *widget, cairo_t *cr, gpointer data)
cairo_set_operator (cr, CAIRO_OPERATOR_OVER);
/* Print the text */
+ cairo_set_source_rgb(cr, 1.0, 1.0, 1.0);
+
layout = pango_layout_new (gtk_widget_get_pango_context (widget));
pango_layout_set_alignment (layout, PANGO_ALIGN_CENTER);
pango_layout_set_text (layout, _(HELP_TEXT), -1);
@@ -166,12 +168,14 @@ draw(GtkWidget *widget, cairo_t *cr, gpointer data)
cairo_set_line_width(cr, CLOCK_LINE_WIDTH);
cairo_arc(cr, calib_area->display_width/2, calib_area->display_height/2, (CLOCK_RADIUS - CLOCK_LINE_WIDTH)/2,
3/2.0*M_PI, (3/2.0*M_PI) + ((double)calib_area->time_elapsed/(double)MAX_TIME) * 2*M_PI);
- cairo_set_source_rgb(cr, 0.0, 0.0, 0.0);
+ cairo_set_source_rgb(cr, 1.0, 1.0, 1.0);
cairo_stroke(cr);
/* Draw the message (if any) */
if (calib_area->message != NULL)
{
+ cairo_set_source_rgb(cr, 1.0, 1.0, 1.0);
+
/* Frame the message */
layout = pango_layout_new (gtk_widget_get_pango_context (widget));
pango_layout_set_alignment (layout, PANGO_ALIGN_CENTER);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]