Index: src/anjuta-app.c
===================================================================
--- src/anjuta-app.c	(revision 3876)
+++ src/anjuta-app.c	(working copy)
@@ -38,6 +38,7 @@
 #include <bonobo/bonobo-dock-item.h>
 
 #include <libanjuta/anjuta-shell.h>
+#include <libanjuta/anjuta-ui.h>
 #include <libanjuta/anjuta-utils.h>
 #include <libanjuta/resources.h>
 #include <libanjuta/anjuta-plugin-manager.h>
@@ -106,54 +107,8 @@
 		}
 	}
 }
-	
 
-/*
- * Accels
- */
-static gchar *
-get_accel_file (void)
-{
-	gchar *anjuta_dir = NULL;
-	gchar *filename = NULL;
-
-	anjuta_dir = anjuta_util_get_user_config_dir ();
-
-	if (anjuta_dir != NULL)
-		filename = g_build_filename (anjuta_dir, "anjuta-accels", NULL);
-	
-	g_free (anjuta_dir);
-
-	return filename;
-}
-
 static void
-load_accels (void)
-{
-	gchar *filename;
-
-	filename = get_accel_file ();
-	if (filename != NULL)
-	{
-		gtk_accel_map_load (filename);
-		g_free (filename);
-	}
-}
-
-static void
-save_accels (void)
-{
-	gchar *filename;
-
-	filename = get_accel_file ();
-	if (filename != NULL)
-	{
-		gtk_accel_map_save (filename);
-		g_free (filename);
-	}
-}
-
-static void
 on_gdl_style_changed (GConfClient* client, guint id, GConfEntry* entry,
 					  gpointer user_data)
 {
@@ -840,7 +795,7 @@
 					  G_CALLBACK (on_session_load), app);
 	
 	/* Loading accels */
-	load_accels ();
+	anjuta_ui_load_accels ();
 }
 
 static void
@@ -944,7 +899,7 @@
 		g_warning ("Saving dock layout to '%s' failed!", filename);
 		
 	/* This is a good place to save the accels too */
-	save_accels ();
+	anjuta_ui_save_accels ();
 }
 
 static void
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 3876)
+++ ChangeLog	(working copy)
@@ -1,3 +1,9 @@
+2008-04-28  Ignacio Casal Quinteiro  <nacho.resa@gmail.com>
+
+	* src/anjuta-app.c:
+	* libanjuta/anjuta-ui.{ch}:
+	Moved accels save/load funcs to anjuta-ui.
+
 2008-04-20  Johannes Schmid  <jhs@gnome.org>
 
 	* libanjuta/anjuta-launcher.c (anjuta_launcher_dispose):
Index: libanjuta/anjuta-ui.h
===================================================================
--- libanjuta/anjuta-ui.h	(revision 3876)
+++ libanjuta/anjuta-ui.h	(working copy)
@@ -130,6 +130,11 @@
 /* Dump the whole tree in STDOUT. Useful for debugging */
 void anjuta_ui_dump_tree (AnjutaUI *ui);
 
+/* Loading and saving accels */
+void anjuta_ui_load_accels (void);
+
+void anjuta_ui_save_accels (void);
+
 /* Convenience macros to register stock icons */
 #define BEGIN_REGISTER_ICON(plugin) \
 { \
Index: libanjuta/anjuta-ui.c
===================================================================
--- libanjuta/anjuta-ui.c	(revision 3876)
+++ libanjuta/anjuta-ui.c	(working copy)
@@ -951,3 +951,48 @@
 	/* DEBUG_PRINT ("%s", ui_str); */
 	g_free (ui_str);
 }
+
+/*
+ * Accels
+ */
+static gchar *
+anjuta_ui_get_accel_file (void)
+{
+	gchar *anjuta_dir = NULL;
+	gchar *filename = NULL;
+
+	anjuta_dir = anjuta_util_get_user_config_dir ();
+
+	if (anjuta_dir != NULL)
+		filename = g_build_filename (anjuta_dir, "anjuta-accels", NULL);
+	
+	g_free (anjuta_dir);
+
+	return filename;
+}
+
+void
+anjuta_ui_load_accels (void)
+{
+	gchar *filename;
+
+	filename = anjuta_ui_get_accel_file ();
+	if (filename != NULL)
+	{
+		gtk_accel_map_load (filename);
+		g_free (filename);
+	}
+}
+
+void
+anjuta_ui_save_accels (void)
+{
+	gchar *filename;
+
+	filename = anjuta_ui_get_accel_file ();
+	if (filename != NULL)
+	{
+		gtk_accel_map_save (filename);
+		g_free (filename);
+	}
+}
