[gtk+] docs/reference/gtk/text_widget.sgml: Use GdkRGBA instead GdkColor



commit 8e1fdaebe78d701853fafe58f03310c520f0eb36
Author: Javier Jardón <jjardon gnome org>
Date:   Tue Apr 26 16:14:52 2011 +0100

    docs/reference/gtk/text_widget.sgml: Use GdkRGBA instead GdkColor

 docs/reference/gtk/text_widget.sgml |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/docs/reference/gtk/text_widget.sgml b/docs/reference/gtk/text_widget.sgml
index aaf04e3..6a5ebff 100644
--- a/docs/reference/gtk/text_widget.sgml
+++ b/docs/reference/gtk/text_widget.sgml
@@ -152,8 +152,8 @@ There are two ways to affect text attributes in #GtkTextView.
 You can change the default attributes for a given #GtkTextView, and you can 
 apply tags that change the attributes for a region of text.  For text features 
 that come from the theme &mdash; such as font and foreground color &mdash; use 
-standard #GtkWidget functions such as gtk_widget_modify_font() or 
-gtk_widget_modify_text(). For other attributes there are dedicated methods on 
+standard #GtkWidget functions such as gtk_widget_modify_font() or
+gtk_widget_override_text(). For other attributes there are dedicated methods on
 #GtkTextView such as gtk_text_view_set_tabs().
 
 <informalexample><programlisting>
@@ -161,7 +161,7 @@ gtk_widget_modify_text(). For other attributes there are dedicated methods on
   GtkTextBuffer *buffer;
   GtkTextIter start, end;
   PangoFontDescription *font_desc;
-  GdkColor color;
+  GdkRGBA rgba;
   GtkTextTag *tag;
 
   view = gtk_text_view_new (<!-- -->);
@@ -176,8 +176,8 @@ gtk_widget_modify_text(). For other attributes there are dedicated methods on
   pango_font_description_free (font_desc);
 
   /* Change default color throughout the widget */
-  gdk_color_parse ("green", &amp;color);
-  gtk_widget_modify_text (view, GTK_STATE_NORMAL, &amp;color);
+  gdk_rgba_parse ("green", &amp;rgba);
+  gtk_widget_override_color (view, GTK_STATE_FLAG_NORMAL, &amp;rgba);
 
   /* Change left margin throughout the widget */
   gtk_text_view_set_left_margin (GTK_TEXT_VIEW (view), 30);



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