Reviewed the use of MAEMO_GTK define, now we add the define in the compilation line...
authorAlejandro G. Castro <alex@igalia.com>
Fri, 14 Nov 2008 13:08:38 +0000 (13:08 +0000)
committerAlejandro G. Castro <alex@igalia.com>
Fri, 14 Nov 2008 13:08:38 +0000 (13:08 +0000)
* 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.

ChangeLog
configure.ac
pkgconfig/hildon.pc.in
src/hildon-gtk.c
src/hildon-gtk.h

index ca3c1ba..e080cd7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,20 @@
 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,
index 0b6d4f3..4703d02 100644 (file)
@@ -113,7 +113,8 @@ AM_CONDITIONAL(USE_MAEMO_GTK, test "x$USE_MAEMO_GTK" = "xyes")
 # 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
@@ -184,7 +185,7 @@ EXTRA_CFLAGS="$DISABLE_DEPRECATED"
 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
index 74e956f..fe69c59 100644 (file)
@@ -8,4 +8,4 @@ Description: Hildon widgets library
 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@
index b9583bb..6057df0 100644 (file)
@@ -239,7 +239,7 @@ hildon_gtk_radio_button_new_from_widget         (HildonSizeType  size,
     return button;
 }
 
-#ifdef MAEMO_CHANGES
+#ifdef MAEMO_GTK
 /**
  * hildon_gtk_tree_view_new:
  * @mode: the Hildon UI mode
@@ -303,7 +303,7 @@ hildon_gtk_icon_view_new_with_model             (HildonUIMode  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:
index 748a2e0..f0d2ca9 100644 (file)
@@ -52,7 +52,7 @@ GtkWidget *
 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);
 
@@ -66,7 +66,7 @@ hildon_gtk_icon_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,