[gnome-builder] prefs: make git and editor page inherit from GbPreferencesPage.



commit eb4ff95c7d4bdfb94c1be0bddf5a6bd48ec9c93a
Author: Christian Hergert <christian hergert me>
Date:   Mon Oct 13 19:13:22 2014 -0400

    prefs: make git and editor page inherit from GbPreferencesPage.

 src/preferences/gb-preferences-page-editor.c   |    2 +-
 src/preferences/gb-preferences-page-editor.h   |    4 ++--
 src/preferences/gb-preferences-page-git.c      |    2 +-
 src/preferences/gb-preferences-page-git.h      |    6 +++---
 src/resources/ui/gb-preferences-page-editor.ui |    2 +-
 src/resources/ui/gb-preferences-page-git.ui    |    2 +-
 6 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/src/preferences/gb-preferences-page-editor.c b/src/preferences/gb-preferences-page-editor.c
index 896199a..5462084 100644
--- a/src/preferences/gb-preferences-page-editor.c
+++ b/src/preferences/gb-preferences-page-editor.c
@@ -28,7 +28,7 @@ struct _GbPreferencesPageEditorPrivate
 };
 
 G_DEFINE_TYPE_WITH_PRIVATE (GbPreferencesPageEditor, gb_preferences_page_editor,
-                            GTK_TYPE_BIN)
+                            GB_TYPE_PREFERENCES_PAGE)
 
 static void
 gb_preferences_page_editor_constructed (GObject *object)
diff --git a/src/preferences/gb-preferences-page-editor.h b/src/preferences/gb-preferences-page-editor.h
index 752c76b..4357b10 100644
--- a/src/preferences/gb-preferences-page-editor.h
+++ b/src/preferences/gb-preferences-page-editor.h
@@ -37,7 +37,7 @@ typedef struct _GbPreferencesPageEditorPrivate GbPreferencesPageEditorPrivate;
 
 struct _GbPreferencesPageEditor
 {
-  GtkBin parent;
+  GbPreferencesPage parent;
 
   /*< private >*/
   GbPreferencesPageEditorPrivate *priv;
@@ -45,7 +45,7 @@ struct _GbPreferencesPageEditor
 
 struct _GbPreferencesPageEditorClass
 {
-  GtkBinClass parent;
+  GbPreferencesPageClass parent;
 };
 
 GType gb_preferences_page_editor_get_type (void) G_GNUC_CONST;
diff --git a/src/preferences/gb-preferences-page-git.c b/src/preferences/gb-preferences-page-git.c
index 16b2a34..edbaddf 100644
--- a/src/preferences/gb-preferences-page-git.c
+++ b/src/preferences/gb-preferences-page-git.c
@@ -29,7 +29,7 @@ struct _GbPreferencesPageGitPrivate
 };
 
 G_DEFINE_TYPE_WITH_PRIVATE (GbPreferencesPageGit, gb_preferences_page_git,
-                            GTK_TYPE_BIN)
+                            GB_TYPE_PREFERENCES_PAGE)
 
 static void
 on_author_name_changed (GtkEntry             *entry,
diff --git a/src/preferences/gb-preferences-page-git.h b/src/preferences/gb-preferences-page-git.h
index 2026cc3..7992ef6 100644
--- a/src/preferences/gb-preferences-page-git.h
+++ b/src/preferences/gb-preferences-page-git.h
@@ -19,7 +19,7 @@
 #ifndef GB_PREFERENCES_PAGE_GIT_H
 #define GB_PREFERENCES_PAGE_GIT_H
 
-#include <gtk/gtk.h>
+#include "gb-preferences-page.h"
 
 G_BEGIN_DECLS
 
@@ -37,7 +37,7 @@ typedef struct _GbPreferencesPageGitPrivate GbPreferencesPageGitPrivate;
 
 struct _GbPreferencesPageGit
 {
-  GtkBin parent;
+  GbPreferencesPage parent;
 
   /*< private >*/
   GbPreferencesPageGitPrivate *priv;
@@ -45,7 +45,7 @@ struct _GbPreferencesPageGit
 
 struct _GbPreferencesPageGitClass
 {
-  GtkBinClass parent;
+  GbPreferencesPageClass parent;
 };
 
 GType gb_preferences_page_git_get_type (void) G_GNUC_CONST;
diff --git a/src/resources/ui/gb-preferences-page-editor.ui b/src/resources/ui/gb-preferences-page-editor.ui
index cd3c86a..b2ef973 100644
--- a/src/resources/ui/gb-preferences-page-editor.ui
+++ b/src/resources/ui/gb-preferences-page-editor.ui
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <interface>
   <!-- interface-requires gtk+ 3.8 -->
-  <template class="GbPreferencesPageEditor" parent="GtkBin">
+  <template class="GbPreferencesPageEditor" parent="GbPreferencesPage">
     <child>
       <object class="GtkGrid">
         <property name="visible">True</property>
diff --git a/src/resources/ui/gb-preferences-page-git.ui b/src/resources/ui/gb-preferences-page-git.ui
index 90aa502..2ef8118 100644
--- a/src/resources/ui/gb-preferences-page-git.ui
+++ b/src/resources/ui/gb-preferences-page-git.ui
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <interface>
   <!-- interface-requires gtk+ 3.8 -->
-  <template class="GbPreferencesPageGit" parent="GtkBin">
+  <template class="GbPreferencesPageGit" parent="GbPreferencesPage">
     <child>
       <object class="GtkGrid">
         <property name="visible">True</property>


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