diff options
author | mbkma <[email protected]> | 2020-07-07 15:57:46 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2020-07-29 16:47:54 +0200 |
commit | 2edb465b646f671f3372c70f020bd3d3076e86ad (patch) | |
tree | 0203909db2933fef2bff19084b67ae8f4ccfef19 /pluma/pluma-encodings.h | |
parent | 8f02e21f3703c9549fb357986f77c9534186f2ab (diff) | |
download | pluma-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-encodings.h')
-rw-r--r-- | pluma/pluma-encodings.h | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/pluma/pluma-encodings.h b/pluma/pluma-encodings.h index 0b3a3123..fb40efc1 100644 --- a/pluma/pluma-encodings.h +++ b/pluma/pluma-encodings.h @@ -38,24 +38,27 @@ G_BEGIN_DECLS typedef struct _PlumaEncoding PlumaEncoding; -#define PLUMA_TYPE_ENCODING (pluma_encoding_get_type ()) +#define PLUMA_TYPE_ENCODING (pluma_encoding_get_type ()) -GType pluma_encoding_get_type (void) G_GNUC_CONST; +GType pluma_encoding_get_type (void) G_GNUC_CONST; -const PlumaEncoding *pluma_encoding_get_from_charset (const gchar *charset); -const PlumaEncoding *pluma_encoding_get_from_index (gint index); +const PlumaEncoding *pluma_encoding_get_from_charset (const gchar *charset); +const PlumaEncoding *pluma_encoding_get_from_index (gint index); -gchar *pluma_encoding_to_string (const PlumaEncoding *enc); +gchar *pluma_encoding_to_string (const PlumaEncoding *enc); -const gchar *pluma_encoding_get_name (const PlumaEncoding *enc); -const gchar *pluma_encoding_get_charset (const PlumaEncoding *enc); +const gchar *pluma_encoding_get_name (const PlumaEncoding *enc); +const gchar *pluma_encoding_get_charset (const PlumaEncoding *enc); -const PlumaEncoding *pluma_encoding_get_utf8 (void); -const PlumaEncoding *pluma_encoding_get_current (void); +const PlumaEncoding *pluma_encoding_get_utf8 (void); +const PlumaEncoding *pluma_encoding_get_current (void); /* These should not be used, they are just to make python bindings happy */ -PlumaEncoding *pluma_encoding_copy (const PlumaEncoding *enc); -void pluma_encoding_free (PlumaEncoding *enc); +PlumaEncoding *pluma_encoding_copy (const PlumaEncoding *enc); +void pluma_encoding_free (PlumaEncoding *enc); + +GSList *_pluma_encoding_strv_to_list (const gchar * const *enc_str); +gchar **_pluma_encoding_list_to_strv (const GSList *enc); G_END_DECLS |