ekiga r6616 - in trunk: . lib/engine/gui/gtk-frontend



Author: jschamp
Date: Thu Aug 14 19:41:26 2008
New Revision: 6616
URL: http://svn.gnome.org/viewvc/ekiga?rev=6616&view=rev

Log:
Defined a simple named 3bit RGB color palette to be used in chat text tags.

Modified:
   trunk/ChangeLog
   trunk/lib/engine/gui/gtk-frontend/chat-area.cpp

Modified: trunk/lib/engine/gui/gtk-frontend/chat-area.cpp
==============================================================================
--- trunk/lib/engine/gui/gtk-frontend/chat-area.cpp	(original)
+++ trunk/lib/engine/gui/gtk-frontend/chat-area.cpp	Thu Aug 14 19:41:26 2008
@@ -162,7 +162,7 @@
 
   va_start (args, first_property_name);
   tag = gtk_text_buffer_create_tag (buffer, tag_name,
-				    first_property_name, NULL);
+				    NULL);
 
   if (first_property_name)
     g_object_set_valist (G_OBJECT (tag), first_property_name,
@@ -572,6 +572,47 @@
 				       "underline", PANGO_UNDERLINE_SINGLE,
 				       NULL);
 
+  gm_chat_area_define_simple_text_tag (buffer, self->priv->enhancer,
+				       "col_black", "<color=black>", "</color>",
+				       "foreground", "#000000",
+				       NULL);
+
+  gm_chat_area_define_simple_text_tag (buffer, self->priv->enhancer,
+                                       "col_white", "<color=white>", "</color>",
+                                       "foreground", "#FFFFFF",
+                                       NULL);
+
+  gm_chat_area_define_simple_text_tag (buffer, self->priv->enhancer,
+                                       "col_red", "<color=red>", "</color>",
+                                       "foreground", "#FF0000",
+                                       NULL);
+
+  gm_chat_area_define_simple_text_tag (buffer, self->priv->enhancer,
+                                       "col_cyan", "<color=cyan>", "</color>",
+                                       "foreground", "#00FFFF",
+                                       NULL);
+
+  gm_chat_area_define_simple_text_tag (buffer, self->priv->enhancer,
+                                       "col_green", "<color=green>", "</color>",
+                                       "foreground", "#00FF00",
+                                       NULL);
+
+  gm_chat_area_define_simple_text_tag (buffer, self->priv->enhancer,
+                                       "col_magenta", "<color=magenta>", "</color>",
+                                       "foreground", "#FF00FF",
+                                       NULL);
+
+  gm_chat_area_define_simple_text_tag (buffer, self->priv->enhancer,
+                                       "col_blue", "<color=blue>", "</color>",
+                                       "foreground", "#0000FF",
+                                       NULL);
+
+  gm_chat_area_define_simple_text_tag (buffer, self->priv->enhancer,
+                                       "col_yellow", "<color=yellow>", "</color>",
+                                       "foreground", "#FFFF00",
+                                       NULL);
+
+
   /* and finally the chat area has a nice entry system */
   GtkWidget* vbox = NULL;
   GtkWidget* bbox = NULL;



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