[gtk+] Add information about progressbar migration
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Add information about progressbar migration
- Date: Thu, 2 Sep 2010 04:07:39 +0000 (UTC)
commit 42a90aa00c9b9c4029777d9d67a25e5144ce4cb6
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Sep 2 00:05:32 2010 -0400
Add information about progressbar migration
Add a section to the migration guide about GtkProgressBar.
Also, actually include the wrap box docs.
docs/reference/gtk/gtk-docs.sgml | 1 +
docs/reference/gtk/migrating-2to3.xml | 29 +++++++++++++++++++++++++++++
2 files changed, 30 insertions(+), 0 deletions(-)
---
diff --git a/docs/reference/gtk/gtk-docs.sgml b/docs/reference/gtk/gtk-docs.sgml
index 4e97d0b..34c1aa1 100644
--- a/docs/reference/gtk/gtk-docs.sgml
+++ b/docs/reference/gtk/gtk-docs.sgml
@@ -307,6 +307,7 @@ that is, GUI components such as #GtkButton or #GtkTextView.
<xi:include href="xml/gtkbbox.xml" />
<xi:include href="xml/gtkhbbox.xml" />
<xi:include href="xml/gtkvbbox.xml" />
+ <xi:include href="xml/gtkwrapbox.xml" />
<xi:include href="xml/gtkfixed.xml" />
<xi:include href="xml/gtkpaned.xml" />
<xi:include href="xml/gtkhpaned.xml" />
diff --git a/docs/reference/gtk/migrating-2to3.xml b/docs/reference/gtk/migrating-2to3.xml
index 389a578..bcc27b8 100644
--- a/docs/reference/gtk/migrating-2to3.xml
+++ b/docs/reference/gtk/migrating-2to3.xml
@@ -381,6 +381,35 @@ cairo_destroy (cr);
</section>
<section>
+ <title>GtkProgressBar orientation</title>
+
+ <para>
+ In GTK+ 2.x, #GtkProgressBar and #GtkCellRendererProgress were using the
+ GtkProgressBarOrientation enumeration to specify their orientation and
+ direction. In GTK+ 3, both the widget and the cell renderer implement
+ #GtkOrientable, and have an additional 'inverted' property to determine
+ their direction. Therefore, a call to gtk_progress_bar_set_orientation()
+ needs to be replaced by a pair of calls to
+ gtk_orientable_set_orientation() and gtk_progress_bar_set_inverted().
+ The following values correspond:
+ <table>
+ <tgroup cols="3">
+ <thead>
+ <row><entry>GTK+ 2.x</entry><entry morerows="1">GTK+ 3</entry></row>
+ <row><entry>GtkProgressBarOrientation</entry><entry>GtkOrientation</entry><entry>inverted</entry></row>
+ </thead>
+ <tbody>
+ <row><entry>GTK_PROGRESS_LEFT_TO_RIGHT</entry><entry>GTK_ORIENTATION_HORIZONTAL</entry><entry>FALSE</entry></row>
+ <row><entry>GTK_PROGRESS_RIGHT_TO_LEFT</entry><entry>GTK_ORIENTATION_HORIZONTAL</entry><entry>TRUE</entry></row>
+ <row><entry>GTK_PROGRESS_TOP_TO_BOTTOM</entry><entry>GTK_ORIENTATION_VERTICAL</entry><entry>FALSE</entry></row>
+ <row><entry>GTK_PROGRESS_BOTTOM_TO_TOP</entry><entry>GTK_ORIENTATION_VERTICAL</entry><entry>TRUE</entry></row>
+ </tbody>
+ </tgroup>
+ </table>
+ </para>
+ </section>
+
+ <section>
<title>Prevent mixed linkage</title>
<para>
Linking against GTK+ 2.x and GTK+ 3 in the same process is problematic
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]