]> Pileus Git - aweather/blobdiff - src/plugins/gps-plugin.c
Update compat includes
[aweather] / src / plugins / gps-plugin.c
index b3feefe6baaf9b0d2eafc36ac2c579493d6c5eee..fe693e325423a07852e398867038557f8a32fc1f 100644 (file)
@@ -40,7 +40,7 @@
 #include "level2.h"
 #include "../aweather-location.h"
 
-#include "compat.h"
+#include "../compat.h"
 
 /* interval to update map with new gps data in seconds. */
 #define GPS_UPDATE_INTERVAL     (2)
@@ -821,9 +821,11 @@ static void gps_init_track_log_frame(GritsPluginGps *gps, GtkWidget *gbox)
        gtk_range_set_increments(
                    GTK_RANGE(gps->ui.gps_log_interval_slider),
                    10.0 /* step */, 30.0 /* page up/down */);
+#if ! GTK_CHECK_VERSION(3,0,0)
        gtk_range_set_update_policy(
                    GTK_RANGE(gps->ui.gps_log_interval_slider),
                    GTK_UPDATE_DELAYED);
+#endif
        gtk_box_pack_start(GTK_BOX(ubox), gps->ui.gps_log_interval_slider,
                    TRUE, TRUE, 0);
        gtk_box_pack_start(GTK_BOX(lbox), ubox, FALSE, FALSE, 0);