[gtk+] 2 to 3 migration should say gtk_widget_set_visual



commit 35d361fce9bae17c1d16dadda225df12ea07a34a
Author: Christian Dywan <christian twotoasts de>
Date:   Tue Jan 11 16:36:19 2011 +0100

    2 to 3 migration should say gtk_widget_set_visual

 docs/reference/gtk/migrating-2to3.xml |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/docs/reference/gtk/migrating-2to3.xml b/docs/reference/gtk/migrating-2to3.xml
index 70d9419..d9bb6a3 100644
--- a/docs/reference/gtk/migrating-2to3.xml
+++ b/docs/reference/gtk/migrating-2to3.xml
@@ -704,7 +704,7 @@ g_object_unref (pixbuf);
       in 'native' surfaces. Therefore, #GdkColormap and related functions
       have been removed in GTK+ 3, and visuals are used instead. The
       colormap-handling functions of #GtkWidget (gtk_widget_set_colormap(),
-      etc) have been removed and gtk_window_set_visual() has been added.
+      etc) have been removed and gtk_widget_set_visual() has been added.
     </para>
     <example><title>Setting up a translucent window</title>
     <para>You might have a screen-changed handler like the following
@@ -740,7 +740,7 @@ on_alpha_screen_changed (GtkWindow *window,
   if (visual == NULL)
     visual = gdk_screen_get_system_visual (screen);
 
-  gtk_window_set_visual (window, visual);
+  gtk_widget_set_visual (window, visual);
 }
     </programlisting>
     </example>



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