2 to 3 migration should say gtk_widget_set_visual

This commit is contained in:
Christian Dywan 2011-01-11 16:36:19 +01:00
parent 44da5a0094
commit 35d361fce9

View File

@ -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>