[gnome-text-editor] themeselector: use char instead of gchar
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-text-editor] themeselector: use char instead of gchar
- Date: Fri, 19 Nov 2021 22:59:33 +0000 (UTC)
commit 91163cb106195df152e67862143659d38623c62a
Author: Christian Hergert <chergert redhat com>
Date: Fri Nov 19 14:55:29 2021 -0800
themeselector: use char instead of gchar
src/editor-theme-selector-private.h | 8 ++++----
src/editor-theme-selector.c | 9 +++++----
2 files changed, 9 insertions(+), 8 deletions(-)
---
diff --git a/src/editor-theme-selector-private.h b/src/editor-theme-selector-private.h
index 7fc3a68..e01d960 100644
--- a/src/editor-theme-selector-private.h
+++ b/src/editor-theme-selector-private.h
@@ -28,9 +28,9 @@ G_BEGIN_DECLS
G_DECLARE_FINAL_TYPE (EditorThemeSelector, editor_theme_selector, EDITOR, THEME_SELECTOR, GtkWidget)
-GtkWidget *_editor_theme_selector_new (void);
-const gchar *_editor_theme_selector_get_theme (EditorThemeSelector *self);
-void _editor_theme_selector_set_theme (EditorThemeSelector *self,
- const gchar *theme);
+GtkWidget *_editor_theme_selector_new (void);
+const char *_editor_theme_selector_get_theme (EditorThemeSelector *self);
+void _editor_theme_selector_set_theme (EditorThemeSelector *self,
+ const char *theme);
G_END_DECLS
diff --git a/src/editor-theme-selector.c b/src/editor-theme-selector.c
index db3f93d..d5c525d 100644
--- a/src/editor-theme-selector.c
+++ b/src/editor-theme-selector.c
@@ -22,16 +22,17 @@
#include "config.h"
-#include "editor-theme-selector-private.h"
#include <adwaita.h>
+#include "editor-theme-selector-private.h"
+
struct _EditorThemeSelector
{
GtkWidget parent_instance;
GtkWidget *box;
GtkToggleButton *dark;
GtkToggleButton *light;
- gchar *theme;
+ char *theme;
};
G_DEFINE_TYPE (EditorThemeSelector, editor_theme_selector, GTK_TYPE_WIDGET)
@@ -136,7 +137,7 @@ editor_theme_selector_init (EditorThemeSelector *self)
self->theme = g_strdup (dark ? "dark" : "light");
}
-const gchar *
+const char *
_editor_theme_selector_get_theme (EditorThemeSelector *self)
{
g_return_val_if_fail (EDITOR_IS_THEME_SELECTOR (self), NULL);
@@ -146,7 +147,7 @@ _editor_theme_selector_get_theme (EditorThemeSelector *self)
void
_editor_theme_selector_set_theme (EditorThemeSelector *self,
- const gchar *theme)
+ const char *theme)
{
g_return_if_fail (EDITOR_IS_THEME_SELECTOR (self));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]