From e16beba111cf8d9d08b8578affb7fb662c93120a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Wed, 18 May 2011 19:36:42 +0200 Subject: [PATCH] mutter-window-demo: Port from GdkColor to GdkRGBA GdkColor is about to be deprecated, so move to GdkRGBA instead. https://bugzilla.gnome.org/show_bug.cgi?id=650586 --- src/tools/mutter-window-demo.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/tools/mutter-window-demo.c b/src/tools/mutter-window-demo.c index 2b8991ee3..f78a47660 100644 --- a/src/tools/mutter-window-demo.c +++ b/src/tools/mutter-window-demo.c @@ -682,7 +682,7 @@ desktop_cb (GtkAction *action, { GtkWidget *window; GtkWidget *label; - GdkColor desktop_color; + GdkRGBA desktop_color; window = gtk_window_new (GTK_WINDOW_TOPLEVEL); set_gtk_window_type (GTK_WINDOW (window), "_NET_WM_WINDOW_TYPE_DESKTOP"); @@ -691,11 +691,12 @@ desktop_cb (GtkAction *action, gdk_screen_width (), gdk_screen_height ()); gtk_window_move (GTK_WINDOW (window), 0, 0); - desktop_color.red = 0x5144; - desktop_color.green = 0x75D6; - desktop_color.blue = 0xA699; + desktop_color.red = 0.32; + desktop_color.green = 0.46; + desktop_color.blue = 0.65; + desktop_color.alpha = 1.0; - gtk_widget_modify_bg (window, GTK_STATE_NORMAL, &desktop_color); + gtk_widget_override_background_color (window, 0, &desktop_color); label = focus_label (window);