[gedit] GeditSettings: minor code change



commit 50c8f9ad6f9e0444181f54c4944621fd63b28f17
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Tue Nov 24 17:45:40 2020 +0100

    GeditSettings: minor code change
    
    More logical function order.

 gedit/gedit-settings.c | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/gedit/gedit-settings.c b/gedit/gedit-settings.c
index 46b412787..fdc77845d 100644
--- a/gedit/gedit-settings.c
+++ b/gedit/gedit-settings.c
@@ -70,6 +70,15 @@ gedit_settings_finalize (GObject *object)
        G_OBJECT_CLASS (gedit_settings_parent_class)->finalize (object);
 }
 
+static void
+gedit_settings_class_init (GeditSettingsClass *klass)
+{
+       GObjectClass *object_class = G_OBJECT_CLASS (klass);
+
+       object_class->dispose = gedit_settings_dispose;
+       object_class->finalize = gedit_settings_finalize;
+}
+
 static void
 set_font (GeditSettings *self,
          const gchar   *font)
@@ -231,15 +240,6 @@ on_syntax_highlighting_changed (GSettings     *settings,
        g_list_free (windows);
 }
 
-static void
-gedit_settings_class_init (GeditSettingsClass *klass)
-{
-       GObjectClass *object_class = G_OBJECT_CLASS (klass);
-
-       object_class->dispose = gedit_settings_dispose;
-       object_class->finalize = gedit_settings_finalize;
-}
-
 static void
 gedit_settings_init (GeditSettings *self)
 {


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