gtkpod / Anuta 3.6 compatibility

Dimstar / Dominique Leuenberger <[email protected]> Sat, 13 Oct 2012 15:27:10 +0200
Newsgroups gmane.comp.ipod.gtkpod
Message-ID <[email protected]>
Hi list,

Anjuta had some minor API changes in the 3.5 / 3.6 development cycle
which affects the capabilities of GTKPod to be built.

Attached a patch that seems to address this, hopefully the right way.

Feel free to use or ignore.

Best regards
Dominique

------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev

_______________________________________________
Gtkpod-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtkpod-devel
gtkpod-anuta36.patch (text/x-patch, 919 B)
Index: gtkpod-2.1.2/src/anjuta-app.c
===================================================================
--- gtkpod-2.1.2.orig/src/anjuta-app.c
+++ gtkpod-2.1.2/src/anjuta-app.c
@@ -38,6 +38,7 @@
 #include <libanjuta/resources.h>
 #include <libanjuta/anjuta-plugin-manager.h>
 #include <libanjuta/anjuta-debug.h>
+#include <libanjuta/anjuta-version.h>
 
 #include "anjuta-app.h"
 #include "anjuta-actions.h"
@@ -501,7 +502,11 @@ static void anjuta_app_instance_init(Anj
     g_list_free(plugins_dirs);
 
     /* Preferences */
+#if ANJUTA_CHECK_VERSION(3,5,3)
+    app->preferences = anjuta_preferences_new(app->plugin_manager, PREF_SCHEMA);
+#else
     app->preferences = anjuta_preferences_new(app->plugin_manager);
+#endif
     g_object_add_weak_pointer(G_OBJECT (app->preferences), (gpointer) &app->preferences);
 
     g_signal_connect(app->settings, "changed::" GDL_STYLE, G_CALLBACK(on_gdl_style_changed), app);