mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-11 03:10:09 +00:00
docs: question_index: Do not reference deprecated API
This commit is contained in:
parent
44f16bfe6d
commit
df2a4a6131
@ -465,7 +465,6 @@ using code like the following:
|
||||
g_object_unref (layout);
|
||||
</programlisting>
|
||||
</informalexample>
|
||||
Do not use the deprecated #GdkFont and gdk_draw_text().
|
||||
</para>
|
||||
|
||||
<para>
|
||||
@ -498,7 +497,6 @@ pango_layout_get_pixel_size(), using code like the following:
|
||||
g_object_unref (layout);
|
||||
</programlisting>
|
||||
</informalexample>
|
||||
Do not use the deprecated function gdk_text_width().
|
||||
</para>
|
||||
|
||||
<para>
|
||||
@ -586,9 +584,7 @@ channel will be respected.
|
||||
<para>
|
||||
See <link linkend="TreeWidget">tree widget overview</link> — you
|
||||
should use the #GtkTreeView widget. (A list is just a tree with no branches,
|
||||
so the tree widget is used for lists as well.) Do not use the deprecated
|
||||
widgets #GtkTree or #GtkCList/#GtkCTree in newly-written code, they are
|
||||
less flexible and result in an inferior user interface.
|
||||
so the tree widget is used for lists as well).
|
||||
</para>
|
||||
</answer>
|
||||
</qandaentry>
|
||||
@ -601,8 +597,7 @@ less flexible and result in an inferior user interface.
|
||||
<answer>
|
||||
<para>
|
||||
See <link linkend="TextWidget">text widget overview</link> — you
|
||||
should use the #GtkTextView widget. Do not use the deprecated widget #GtkText
|
||||
in newly-written code, it has a number of problems that are best avoided.
|
||||
should use the #GtkTextView widget.
|
||||
</para>
|
||||
<para>
|
||||
If you only have a small amount of text, #GtkLabel may also be appropriate
|
||||
|
Loading…
Reference in New Issue
Block a user