2 to 3 migration should say gtk_widget_set_visual
This commit is contained in:
parent
44da5a0094
commit
35d361fce9
@ -704,7 +704,7 @@ g_object_unref (pixbuf);
|
|||||||
in 'native' surfaces. Therefore, #GdkColormap and related functions
|
in 'native' surfaces. Therefore, #GdkColormap and related functions
|
||||||
have been removed in GTK+ 3, and visuals are used instead. The
|
have been removed in GTK+ 3, and visuals are used instead. The
|
||||||
colormap-handling functions of #GtkWidget (gtk_widget_set_colormap(),
|
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>
|
</para>
|
||||||
<example><title>Setting up a translucent window</title>
|
<example><title>Setting up a translucent window</title>
|
||||||
<para>You might have a screen-changed handler like the following
|
<para>You might have a screen-changed handler like the following
|
||||||
@ -740,7 +740,7 @@ on_alpha_screen_changed (GtkWindow *window,
|
|||||||
if (visual == NULL)
|
if (visual == NULL)
|
||||||
visual = gdk_screen_get_system_visual (screen);
|
visual = gdk_screen_get_system_visual (screen);
|
||||||
|
|
||||||
gtk_window_set_visual (window, visual);
|
gtk_widget_set_visual (window, visual);
|
||||||
}
|
}
|
||||||
</programlisting>
|
</programlisting>
|
||||||
</example>
|
</example>
|
||||||
|
Loading…
Reference in New Issue
Block a user