diff --git a/docs/reference/gtk/migrating-2to3.xml b/docs/reference/gtk/migrating-2to3.xml index 70d9419f24..d9bb6a3c31 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. Setting up a translucent window 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); }