From 44f01fe6e18969863df6453b943f1b6d41889c92 Mon Sep 17 00:00:00 2001 From: Yevgen Muntyan <17531749+muntyan@users.noreply.github.com> Date: Tue, 6 Sep 2005 04:34:12 +0000 Subject: [PATCH] Fixed for standalone compiling --- moo/mooedit/moofileview/moobookmarkmgr.c | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) diff --git a/moo/mooedit/moofileview/moobookmarkmgr.c b/moo/mooedit/moofileview/moobookmarkmgr.c index 51e8dae6..136e7a00 100644 --- a/moo/mooedit/moofileview/moobookmarkmgr.c +++ b/moo/mooedit/moofileview/moobookmarkmgr.c @@ -14,13 +14,14 @@ #include "moobookmarkmgr.h" #include "moofileentry.h" #include MOO_MARSHALS_H -#include "mooutils/mooprefs.h" #include #include #include #include #include - +#ifdef __MOO__ +#include "mooutils/mooprefs.h" +#endif #define COLUMN_BOOKMARK MOO_BOOKMARK_MGR_COLUMN_BOOKMARK @@ -122,7 +123,7 @@ static void emit_changed (MooBookmarkMgr *mgr) } -static void moo_bookmark_mgr_changed (MooBookmarkMgr *mgr) +static void moo_bookmark_mgr_changed (G_GNUC_UNUSED MooBookmarkMgr *mgr) { #ifdef __MOO__ if (!mgr->priv->loading) @@ -602,7 +603,7 @@ gboolean moo_bookmark_mgr_load (MooBookmarkMgr *mgr, if (!strncmp (group, "Separator", strlen ("Separator"))) { - gtk_list_store_append (mgr->priv->store, &iter); + moo_bookmark_mgr_add_separator (mgr); continue; } else if (strncmp (group, "Bookmark", strlen ("Bookmark"))) @@ -635,17 +636,6 @@ gboolean moo_bookmark_mgr_load (MooBookmarkMgr *mgr, g_free (val); } - val = g_key_file_get_value (key_file, group, "description", NULL); - if (val && val[0]) - { - g_free (bookmark->description); - bookmark->description = val; - } - else - { - g_free (val); - } - val = g_key_file_get_value (key_file, group, "label", NULL); if (val && val[0]) { @@ -747,8 +737,6 @@ gboolean moo_bookmark_mgr_save (MooBookmarkMgr *mgr, bookmark->label ? bookmark->label : ""); g_key_file_set_value (key_file, group, "path", bookmark->display_path ? bookmark->display_path : ""); - g_key_file_set_value (key_file, group, "description", - bookmark->description ? bookmark->description : ""); g_key_file_set_value (key_file, group, "icon", bookmark->icon_stock_id ? bookmark->icon_stock_id : "");