[gnome-control-center] wacom: Make the window a tiny bit transparent
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] wacom: Make the window a tiny bit transparent
- Date: Wed, 11 Jan 2012 19:29:03 +0000 (UTC)
commit 6e179b433e7cb2643e1ff52a456d846388f024cb
Author: Bastien Nocera <hadess hadess net>
Date: Wed Jan 11 19:11:55 2012 +0000
wacom: Make the window a tiny bit transparent
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 3237126..81b1041 100644
--- a/panels/wacom/calibrator/gui_gtk.c
+++ b/panels/wacom/calibrator/gui_gtk.c
@@ -33,6 +33,9 @@
#include "calibrator.h"
#include "gui_gtk.h"
+/* Window parameters */
+#define WINDOW_OPACITY 0.9
+
/* Timeout parameters */
#define TIME_STEP 100 /* in milliseconds */
#define MAX_TIME 15000 /* 5000 = 5 sec */
@@ -382,7 +385,8 @@ run_gui(struct Calib *c,
gtk_window_fullscreen(GTK_WINDOW(win));
/* Black background */
- gdk_rgba_parse (&black, "000");
+ gdk_rgba_parse (&black, "rgb(0,0,0)");
+ gtk_window_set_opacity (GTK_WINDOW (win), WINDOW_OPACITY);
gtk_widget_realize (win);
window = gtk_widget_get_window (win);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]