forked from AuroraMiddleware/gtk
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);
|
g_object_unref (layout);
|
||||||
</programlisting>
|
</programlisting>
|
||||||
</informalexample>
|
</informalexample>
|
||||||
Do not use the deprecated #GdkFont and gdk_draw_text().
|
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
@ -498,7 +497,6 @@ pango_layout_get_pixel_size(), using code like the following:
|
|||||||
g_object_unref (layout);
|
g_object_unref (layout);
|
||||||
</programlisting>
|
</programlisting>
|
||||||
</informalexample>
|
</informalexample>
|
||||||
Do not use the deprecated function gdk_text_width().
|
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
@ -586,9 +584,7 @@ channel will be respected.
|
|||||||
<para>
|
<para>
|
||||||
See <link linkend="TreeWidget">tree widget overview</link> — you
|
See <link linkend="TreeWidget">tree widget overview</link> — you
|
||||||
should use the #GtkTreeView widget. (A list is just a tree with no branches,
|
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
|
so the tree widget is used for lists as well).
|
||||||
widgets #GtkTree or #GtkCList/#GtkCTree in newly-written code, they are
|
|
||||||
less flexible and result in an inferior user interface.
|
|
||||||
</para>
|
</para>
|
||||||
</answer>
|
</answer>
|
||||||
</qandaentry>
|
</qandaentry>
|
||||||
@ -601,8 +597,7 @@ less flexible and result in an inferior user interface.
|
|||||||
<answer>
|
<answer>
|
||||||
<para>
|
<para>
|
||||||
See <link linkend="TextWidget">text widget overview</link> — you
|
See <link linkend="TextWidget">text widget overview</link> — you
|
||||||
should use the #GtkTextView widget. Do not use the deprecated widget #GtkText
|
should use the #GtkTextView widget.
|
||||||
in newly-written code, it has a number of problems that are best avoided.
|
|
||||||
</para>
|
</para>
|
||||||
<para>
|
<para>
|
||||||
If you only have a small amount of text, #GtkLabel may also be appropriate
|
If you only have a small amount of text, #GtkLabel may also be appropriate
|
||||||
|
Loading…
Reference in New Issue
Block a user