ekiga r7446 - in trunk: . lib/gui



Author: dsandras
Date: Tue Dec  9 21:10:42 2008
New Revision: 7446
URL: http://svn.gnome.org/viewvc/ekiga?rev=7446&view=rev

Log:
Do not use deprecated gdk_color_white anymore. Dropped useless 
gdkcolor.h include as it breaks compilation (reported by Eugen).


Modified:
   trunk/ChangeLog
   trunk/lib/gui/gmpreferences.c

Modified: trunk/lib/gui/gmpreferences.c
==============================================================================
--- trunk/lib/gui/gmpreferences.c	(original)
+++ trunk/lib/gui/gmpreferences.c	Tue Dec  9 21:10:42 2008
@@ -42,7 +42,6 @@
 
 #include <string.h>
 #include <libintl.h>
-#include <gdk/gdkcolor.h>
 
 enum {
   COLUMN_STRING_RAW = 0, /* must be zero because it's used in gmconfwidgets */
@@ -982,7 +981,10 @@
   gtk_container_add (GTK_CONTAINER (event_box),
 		     GTK_WIDGET (pixmap));
 
-  gdk_color_white (gdk_colormap_get_system (), &cwhite); 
+  cwhite.red   = 0xff * 0x100;
+  cwhite.green = 0xff * 0x100;
+  cwhite.blue  = 0xff * 0x100;
+  gdk_colormap_alloc_color(gdk_colormap_get_system (), &cwhite, FALSE, TRUE);
   gtk_widget_modify_bg (GTK_WIDGET (event_box),
 			GTK_STATE_NORMAL, &cwhite);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]