[gedit] Fix errors with metadata-manager



commit 96a417c66ce86c7f816139aae3408ccf866bc5f7
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Sun Mar 16 19:08:22 2014 +0100

    Fix errors with metadata-manager

 gedit/gedit-app.c              |    2 +-
 gedit/gedit-metadata-manager.c |    3 +--
 tests/document-loader.c        |    2 +-
 3 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/gedit/gedit-app.c b/gedit/gedit-app.c
index e310b79..f4465b5 100644
--- a/gedit/gedit-app.c
+++ b/gedit/gedit-app.c
@@ -440,7 +440,7 @@ gedit_app_startup (GApplication *application)
        g_free (icon_dir);
 
 #ifndef ENABLE_GVFS_METADATA
-       gedit_metadata_manager_init (metadata_filename);
+       gedit_metadata_manager_init ();
 #endif
 
        /* Load settings */
diff --git a/gedit/gedit-metadata-manager.c b/gedit/gedit-metadata-manager.c
index 14bc398..bb2f407 100644
--- a/gedit/gedit-metadata-manager.c
+++ b/gedit/gedit-metadata-manager.c
@@ -30,7 +30,7 @@
 #define GEDIT_METADATA_VERBOSE_DEBUG   1
 */
 
-#define MAX_ITEM 50
+#define MAX_ITEMS 50
 #define METADATA_FILE "gedit-metadata.xml"
 
 typedef struct _GeditMetadataManager GeditMetadataManager;
@@ -96,7 +96,6 @@ gedit_metadata_manager_arm_timeout (void)
 
 /**
  * gedit_metadata_manager_init:
- * @metadata_filename: the filename where the metadata is.
  *
  * This function initializes the metadata manager.
  * See also gedit_metadata_manager_shutdown().
diff --git a/tests/document-loader.c b/tests/document-loader.c
index 046a748..a614f32 100644
--- a/tests/document-loader.c
+++ b/tests/document-loader.c
@@ -244,7 +244,7 @@ int main (int   argc,
        gedit_dirs_init ();
 
 #ifndef ENABLE_GVFS_METADATA
-       gedit_metadata_manager_init (metadata_filename);
+       gedit_metadata_manager_init ();
 #endif
 
        g_test_add_func ("/document-loader/end-line-stripping", test_end_line_stripping);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]