Xan's fixes for new gtk compilation.
authorMichael Dominic Kostrzewa <michael.kostrzewa@nokia.com>
Wed, 31 Jan 2007 09:14:26 +0000 (09:14 +0000)
committerMichael Dominic Kostrzewa <michael.kostrzewa@nokia.com>
Wed, 31 Jan 2007 09:14:26 +0000 (09:14 +0000)
ChangeLog.2
configure.ac
pkgconfig/hildon.pc.in
src/hildon-seekbar.c

index 8baa089..e8937b9 100644 (file)
@@ -1,3 +1,9 @@
+2007-01-31  Michael Dominic Kostrzewa  <michael.kostrzewa@nokia.com> 
+
+       * configure.ac:
+       * pkgconfig/hildon.pc.in:
+       * src/hildon-seekbar.c: Xan's fixes for new gtk compilation.
+
 2007-01-29  Michael Dominic Kostrzewa  <michael.kostrzewa@nokia.com> 
 
        * ./: More documentation fixes. 
index 23696d5..9eb94ae 100644 (file)
@@ -106,6 +106,12 @@ fi
 PKG_CHECK_MODULES(CHECK, check , [BUILD_TESTS="yes"], [BUILD_TESTS="no"])
 AM_CONDITIONAL(BUILD_TESTS, test "x$BUILD_TESTS" = "xyes")
 
+CFLAGS="$CFLAGS ${ASSERT_CFLAGS} -Wall -Wmissing-prototypes -Wmissing-declarations -Werror -Wno-format"
+# -Wno-format due to way translation string are done
+
+### enable MAEMO platform extensions
+CFLAGS="$CFLAGS -DMAEMO_CHANGES"
+
 # HILDON_OBJ_*
 # default vars for the examples
 # includes all the low-level flags
@@ -115,9 +121,6 @@ HILDON_OBJ_LIBS="\$(top_builddir)/src/libhildon_\$(PACKAGE_VERSION_MAJOR).la \$(
 AC_SUBST(HILDON_OBJ_CFLAGS)
 AC_SUBST(HILDON_OBJ_LIBS)
 
-CFLAGS="$CFLAGS ${ASSERT_CFLAGS} -Wall -Wmissing-prototypes -Wmissing-declarations -Werror -Wno-format"
-# -Wno-format due to way translation string are done
-
 AC_CONFIG_FILES([Makefile src/Makefile  \
                  pkgconfig/Makefile     \
                  examples/Makefile      \
index 5f2d771..0d15b96 100644 (file)
@@ -8,4 +8,4 @@ Description: Hildon widgets library
 Requires: gtk+-2.0 >= @GTK_VERSION@
 Version: @VERSION@
 Libs: -L${libdir} -lhildon_@PACKAGE_VERSION_MAJOR@
-Cflags: -I${includedir}
+Cflags: -I${includedir} -DMAEMO_CHANGES
index 9182a49..6ea83c6 100644 (file)
@@ -423,7 +423,7 @@ hildon_seekbar_get_fraction                     (HildonSeekbar *seekbar)
 {
     g_return_val_if_fail (HILDON_IS_SEEKBAR (seekbar), 0);
 
-    return osso_gtk_range_get_stream_position (GTK_RANGE(seekbar));
+    return gtk_range_get_fill_level (GTK_RANGE (seekbar));
 }
 
 /**
@@ -447,13 +447,13 @@ hildon_seekbar_set_fraction                     (HildonSeekbar *seekbar,
             fraction >= range->adjustment->lower);
 
     /* Set to show stream indicator. */
-    g_object_set (G_OBJECT (seekbar), "stream_indicator", TRUE, NULL);
+    g_object_set (G_OBJECT (seekbar), "show-fill-level", TRUE, NULL);
 
     fraction = CLAMP (fraction, range->adjustment->lower,
             range->adjustment->upper);
 
     /* Update stream position of range widget */
-    osso_gtk_range_set_stream_position (range, fraction);
+    gtk_range_set_fill_level (range, fraction);
 
     if (fraction < hildon_seekbar_get_position(seekbar))
         hildon_seekbar_set_position(seekbar, fraction);
@@ -504,7 +504,7 @@ hildon_seekbar_set_position                     (HildonSeekbar *seekbar,
     value = floor (adj->value);
     if (time != value) {
         value = (time < adj->upper) ? time : adj->upper;
-        if (value <= osso_gtk_range_get_stream_position (range)) {
+        if (value <= gtk_range_get_fill_level (range)) {
             adj->value = value;
             gtk_adjustment_value_changed (adj);