summaryrefslogtreecommitdiff
path: root/pluma/pluma-history-entry.c
diff options
context:
space:
mode:
authormbkma <[email protected]>2020-07-07 15:57:46 +0200
committerraveit65 <[email protected]>2020-07-29 16:47:54 +0200
commit2edb465b646f671f3372c70f020bd3d3076e86ad (patch)
tree0203909db2933fef2bff19084b67ae8f4ccfef19 /pluma/pluma-history-entry.c
parent8f02e21f3703c9549fb357986f77c9534186f2ab (diff)
downloadpluma-2edb465b646f671f3372c70f020bd3d3076e86ad.tar.bz2
pluma-2edb465b646f671f3372c70f020bd3d3076e86ad.tar.xz
Port main program to GSettings
Remove pluma_prefs_manager. Plugins were already ported to GSettings. Based on: https://gitlab.gnome.org/GNOME/gedit/-/commit/4215be0e8924f45170683493beaa2695e8e2e483
Diffstat (limited to 'pluma/pluma-history-entry.c')
-rw-r--r--pluma/pluma-history-entry.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/pluma/pluma-history-entry.c b/pluma/pluma-history-entry.c
index 3dacc123..dff15d1a 100644
--- a/pluma/pluma-history-entry.c
+++ b/pluma/pluma-history-entry.c
@@ -38,7 +38,7 @@
#include <gio/gio.h>
#include "pluma-history-entry.h"
-#include "pluma-prefs-manager.h"
+#include "pluma-settings.h"
enum {
PROP_0,
@@ -125,7 +125,7 @@ pluma_history_entry_finalize (GObject *object)
{
PlumaHistoryEntryPrivate *priv;
- priv = PLUMA_HISTORY_ENTRY (object)->priv;
+ priv = pluma_history_entry_get_instance_private (PLUMA_HISTORY_ENTRY(object));
g_free (priv->history_id);
@@ -222,9 +222,9 @@ pluma_history_entry_save_history (PlumaHistoryEntry *entry)
settings_items = get_history_list (entry);
- pluma_prefs_manager_set_gslist (entry->priv->settings,
- entry->priv->history_id,
- settings_items);
+ pluma_settings_set_list (entry->priv->settings,
+ entry->priv->history_id,
+ settings_items);
g_slist_free_full (settings_items, g_free);
}
@@ -355,8 +355,8 @@ pluma_history_entry_load_history (PlumaHistoryEntry *entry)
store = get_history_store (entry);
- settings_items = pluma_prefs_manager_get_gslist (entry->priv->settings,
- entry->priv->history_id);
+ settings_items = pluma_settings_get_list (entry->priv->settings,
+ entry->priv->history_id);
gtk_list_store_clear (store);
@@ -401,7 +401,7 @@ pluma_history_entry_init (PlumaHistoryEntry *entry)
priv->completion = NULL;
- priv->settings = g_settings_new (PLUMA_SCHEMA);
+ priv->settings = g_settings_new (PLUMA_SCHEMA_ID);
}
void