From 42a90aa00c9b9c4029777d9d67a25e5144ce4cb6 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 2 Sep 2010 00:05:32 -0400 Subject: [PATCH] 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(+) diff --git a/docs/reference/gtk/gtk-docs.sgml b/docs/reference/gtk/gtk-docs.sgml index 4e97d0b605..34c1aa1be2 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. + diff --git a/docs/reference/gtk/migrating-2to3.xml b/docs/reference/gtk/migrating-2to3.xml index 389a578c0d..bcc27b8844 100644 --- a/docs/reference/gtk/migrating-2to3.xml +++ b/docs/reference/gtk/migrating-2to3.xml @@ -380,6 +380,35 @@ cairo_destroy (cr); +
+ GtkProgressBar orientation + + + 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: + + + + GTK+ 2.xGTK+ 3 + GtkProgressBarOrientationGtkOrientationinverted + + + GTK_PROGRESS_LEFT_TO_RIGHTGTK_ORIENTATION_HORIZONTALFALSE + GTK_PROGRESS_RIGHT_TO_LEFTGTK_ORIENTATION_HORIZONTALTRUE + GTK_PROGRESS_TOP_TO_BOTTOMGTK_ORIENTATION_VERTICALFALSE + GTK_PROGRESS_BOTTOM_TO_TOPGTK_ORIENTATION_VERTICALTRUE + + +
+
+
+
Prevent mixed linkage