2008-11-14 Alejandro G. Castro <alex@igalia.com>
+ Reviewed the use of MAEMO_GTK define, now we add the define in the
+ compilation line, and we also add it to the pc file.
+
+ * configure.ac: Added MAEMO_GTK define to the compilation command
+ and removed it from the config.h.
+
+ * pkgconfig/hildon.pc.in: Added MAEMO_GTK, that way applications
+ do not have to take care about this define if the library was
+ compiled with it.
+
+ * src/hildon-gtk.c:
+ * src/hildon-gtk.h: Replaced MAEMO_CHANGES with MAEMO_GTK.
+
+2008-11-14 Alejandro G. Castro <alex@igalia.com>
+
* examples/Makefile.am,
* examples/hildon-pannable-area-buttons-scroll-example.c,
* examples/hildon-pannable-area-gesture-signals-example.c,
# just print out our status
if test x$USE_MAEMO_GTK = xyes; then
AC_MSG_NOTICE(Will use Maemo GTK+ specific API)
- AC_DEFINE(MAEMO_GTK, [], [Whether to use Maemo GTK+ specific API])
+ MAEMO_GTK="-DMAEMO_GTK"
+ AC_SUBST(MAEMO_GTK)
MAEMO_CHANGES="-DMAEMO_CHANGES"
AC_SUBST(MAEMO_CHANGES)
else
AC_SUBST(EXTRA_CFLAGS)
### enable MAEMO platform extensions
-CFLAGS="$CFLAGS $MAEMO_CHANGES"
+CFLAGS="$CFLAGS $MAEMO_CHANGES $MAEMO_GTK"
# HILDON_OBJ_*
# default vars for the examples
Requires: gtk+-2.0 >= @GTK_VERSION@
Version: @VERSION@
Libs: -L${libdir} -lhildon-@API_VERSION_MAJOR@
-Cflags: -I${includedir} @MAEMO_CHANGES@
+Cflags: -I${includedir} @MAEMO_CHANGES@ @MAEMO_GTK@
return button;
}
-#ifdef MAEMO_CHANGES
+#ifdef MAEMO_GTK
/**
* hildon_gtk_tree_view_new:
* @mode: the Hildon UI mode
{
return g_object_new (GTK_TYPE_ICON_VIEW, "hildon-ui-mode", mode, "model", model, NULL);
}
-#endif /* MAEMO_CHANGES */
+#endif /* MAEMO_GTK */
/**
* hildon_gtk_window_set_progress_indicator:
hildon_gtk_radio_button_new_from_widget (HildonSizeType size,
GtkRadioButton *radio_group_member);
-#ifdef MAEMO_CHANGES
+#ifdef MAEMO_GTK
GtkWidget *
hildon_gtk_tree_view_new (HildonUIMode mode);
GtkWidget *
hildon_gtk_icon_view_new_with_model (HildonUIMode mode,
GtkTreeModel *model);
-#endif /* MAEMO_CHANGES */
+#endif /* MAEMO_GTK */
void
hildon_gtk_window_set_progress_indicator (GtkWindow *window,