commit 1824e421d05c45339ce49d3b298ba7e9cc01f5c8
Author: phantomjinx <p.g.richard...@phantomjinx.co.uk>
Date:   Sat Oct 13 22:37:13 2012 +0100

    Fix to cater for changing API in anjuta version 3.5.3+
    
    * Contribute to future proofing against new versions of anjuta library
    
    * Thanks to Dominique (dimstar at opensuse.org) for the report and patch

 src/anjuta-app.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/anjuta-app.c b/src/anjuta-app.c
index 9f4d6db..df08b06 100644
--- a/src/anjuta-app.c
+++ b/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(AnjutaApp *app) {
     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);

------------------------------------------------------------------------------
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-cvs2 mailing list
gtkpod-cvs2@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2

Reply via email to