[gnome-builder/wip/chergert/perspective] prefs: use lists for things



commit 5c5fb03c91d994052874066b4dee070c5f81d897
Author: Christian Hergert <chergert redhat com>
Date:   Sat Nov 7 16:40:30 2015 -0800

    prefs: use lists for things

 libide/preferences/ide-preferences-builtin.c |    8 ++++----
 libide/preferences/ide-preferences-group.c   |    6 ------
 2 files changed, 4 insertions(+), 10 deletions(-)
---
diff --git a/libide/preferences/ide-preferences-builtin.c b/libide/preferences/ide-preferences-builtin.c
index 71831ab..7f5ab1f 100644
--- a/libide/preferences/ide-preferences-builtin.c
+++ b/libide/preferences/ide-preferences-builtin.c
@@ -67,7 +67,7 @@ ide_preferences_builtin_register_appearance (IdePreferences *preferences)
 
   ide_preferences_add_page (preferences, "appearance", _("Appearance"), 0);
 
-  ide_preferences_add_group (preferences, "appearance", "basic", NULL, 0);
+  ide_preferences_add_list_group (preferences, "appearance", "basic", NULL, 0);
   ide_preferences_add_switch (preferences, "appearance", "basic", "org.gnome.builder", "night-mode", NULL, 
NULL, _("Dark Theme"), _("Whether Builder should use a dark theme"), _("dark theme"), 0);
 
   ide_preferences_add_list_group (preferences, "appearance", "font", _("Font"), 100);
@@ -115,7 +115,7 @@ ide_preferences_builtin_register_editor (IdePreferences *preferences)
 {
   ide_preferences_add_page (preferences, "editor", _("Editor"), 100);
 
-  ide_preferences_add_group (preferences, "editor", "position", NULL, 0);
+  ide_preferences_add_list_group (preferences, "editor", "position", NULL, 0);
   ide_preferences_add_switch (preferences, "editor", "position", "org.gnome.builder.editor", 
"restore-insert-mark", NULL, NULL, _("Restore cursor position"), _("Restore the cursor position when a file 
is reopened"), NULL, 0);
 
   ide_preferences_add_list_group (preferences, "editor", "line", _("Line Information"), 50);
@@ -145,7 +145,7 @@ ide_preferences_builtin_register_code_insight (IdePreferences *preferences)
 {
   ide_preferences_add_page (preferences, "code-insight", _("Code Insight"), 300);
 
-  ide_preferences_add_group (preferences, "code-insight", "semantic", NULL, 0);
+  ide_preferences_add_list_group (preferences, "code-insight", "semantic", NULL, 0);
   ide_preferences_add_switch (preferences, "code-insight", "semantic", "org.gnome.builder.code-insight", 
"semantic-highlighting", NULL, NULL, _("Semantic Highlighting"), _("Use code insignt to highlight additional 
information discovered in the source file"), NULL, 0);
 
   ide_preferences_add_list_group (preferences, "code-insight", "completion", _("Completion"), 100);
@@ -159,7 +159,7 @@ ide_preferences_builtin_register_snippets (IdePreferences *preferences)
 {
   ide_preferences_add_page (preferences, "snippets", _("Snippets"), 350);
 
-  ide_preferences_add_group (preferences, "snippets", "completion", NULL, 0);
+  ide_preferences_add_list_group (preferences, "snippets", "completion", NULL, 0);
   ide_preferences_add_switch (preferences, "snippets", "completion", "org.gnome.builder.code-insight", 
"snippet-completion", NULL, NULL, _("Suggest code snippets"), _("Improve your efficiency by using the current 
word to suggest snippets"), NULL, 0);
 }
 
diff --git a/libide/preferences/ide-preferences-group.c b/libide/preferences/ide-preferences-group.c
index ea16a25..b628426 100644
--- a/libide/preferences/ide-preferences-group.c
+++ b/libide/preferences/ide-preferences-group.c
@@ -191,12 +191,6 @@ ide_preferences_group_add (IdePreferencesGroup *self,
     }
   else
     {
-      /* FIXME: Once we can do this with CSS ... */
-      g_object_set (widget,
-                    "margin-start", 11,
-                    "margin-end", 11,
-                    NULL);
-
       gtk_container_add_with_properties (GTK_CONTAINER (self->box), widget,
                                          "position", position,
                                          NULL);


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