+2008-10-30 Alejandro G. Castro <alex@igalia.com>
+
+ * src/hildon-pannable-area.c,
+ (hildon_pannable_area_scroll_to),
+ (hildon_pannable_area_jump_to),
+ (hildon_pannable_area_scroll_to_child),
+ (hildon_pannable_area_jump_to_child): Replace the mapped
+ precondition of these functions with the realized, it is the
+ correct state of the widget in this case. Changed the
+ documentation according to this modification.
+
+2008-10-30 Alejandro G. Castro <alex@igalia.com>
+
+ Added a new EXTRA_CFLAGS option to add the deprecated define to
+ the compilation command. This way we can avoid using the define in
+ the documentation compilation.
+
+ * configure.ac: Defined EXTRA_CFLAGS.
+
+ * examples/Makefile.am:
+ * src/Makefile.am:
+ * tests/Makefile.am: Included EXTRA_CFLAGS in the compilation.
+
2008-10-30 Alejandro Pinheiro <apinheiro@igalia.com>
* src/hildon-picker-dialog.c:
2008-10-30 Alejandro G. Castro <alex@igalia.com>
- Added a new EXTRA_CFLAGS option to add the deprecated define to
- the compilation command. This way we can avoid using the define in
- the documentation compilation.
-
- * configure.ac: Defined EXTRA_CFLAGS.
-
- * examples/Makefile.am:
- * src/Makefile.am:
- * tests/Makefile.am: Included EXTRA_CFLAGS in the compilation.
-
-2008-10-30 Alejandro G. Castro <alex@igalia.com>
-
Fremantle deprecated widgets marked, HILDON_DISABLE_DEPRECATED
* configure.ac: Added an AM_CONDITIONAL in order to use in the
* use hildon_pannable_area_scroll_to_child() instead.
*
* There is a precondition to this function: the widget must be
- * already mapped. Check the hildon_pannable_area_jump_to_child() for
+ * already realized. Check the hildon_pannable_area_jump_to_child() for
* more tips regarding how to call this function during
* initialization.
**/
gint dist_x, dist_y;
gboolean hscroll_visible, vscroll_visible;
- g_return_if_fail (GTK_WIDGET_MAPPED (area));
+ g_return_if_fail (GTK_WIDGET_REALIZED (area));
g_return_if_fail (HILDON_IS_PANNABLE_AREA (area));
priv = area->priv;
* children in scrollable widgets like #GtkTreeview.
*
* There is a precondition to this function: the widget must be
- * already mapped. Check the hildon_pannable_area_jump_to_child() for
+ * already realized. Check the hildon_pannable_area_jump_to_child() for
* more tips regarding how to call this function during
* initialization.
**/
gint width, height;
g_return_if_fail (HILDON_IS_PANNABLE_AREA (area));
- g_return_if_fail (GTK_WIDGET_MAPPED (area));
+ g_return_if_fail (GTK_WIDGET_REALIZED (area));
g_return_if_fail (x >= -1 && y >= -1);
if (x == -1 && y == -1) {
* widget, e.g., #GtkTreeview, see hildon_pannable_area_scroll_to().
*
* There is a precondition to this function: the widget must be
- * already mapped. Check the hildon_pannable_area_jump_to_child() for
+ * already realized. Check the hildon_pannable_area_jump_to_child() for
* more tips regarding how to call this function during
* initialization.
**/
GtkWidget *bin_child;
gint x, y;
- g_return_if_fail (GTK_WIDGET_MAPPED (area));
+ g_return_if_fail (GTK_WIDGET_REALIZED (area));
g_return_if_fail (HILDON_IS_PANNABLE_AREA (area));
g_return_if_fail (GTK_IS_WIDGET (child));
g_return_if_fail (gtk_widget_is_ancestor (child, GTK_WIDGET (area)));
* widget, like, #GtkTreeview, see hildon_pannable_area_scroll_to().
*
* There is a precondition to this function: the widget must be
- * already mapped. You can control if the widget is ready with the
- * GTK_WIDGET_MAPPED macro. If you want to call this function during
- * the initialization process of the widget do it inside an idle call
- * and control with the GTK_WIDGET_MAPPED macro the moment when it is
- * safe to call it.
+ * already realized. You can control if the widget is ready with the
+ * GTK_WIDGET_REALIZED macro. If you want to call this function during
+ * the initialization process of the widget do it inside a callback to
+ * the ::realize signal, using g_signal_connect_after() function.
**/
void
hildon_pannable_area_jump_to_child (HildonPannableArea *area, GtkWidget *child)
GtkWidget *bin_child;
gint x, y;
- g_return_if_fail (GTK_WIDGET_MAPPED (area));
+ g_return_if_fail (GTK_WIDGET_REALIZED (area));
g_return_if_fail (HILDON_IS_PANNABLE_AREA (area));
g_return_if_fail (GTK_IS_WIDGET (child));
g_return_if_fail (gtk_widget_is_ancestor (child, GTK_WIDGET (area)));