[gnome-builder/wip/chergert/perspective] prefs: add grid lines
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/chergert/perspective] prefs: add grid lines
- Date: Fri, 6 Nov 2015 10:24:15 +0000 (UTC)
commit 7a03bbe6a4b5fcc72e3c5ffde7efec70d67fe04e
Author: Christian Hergert <chergert redhat com>
Date: Fri Nov 6 02:24:05 2015 -0800
prefs: add grid lines
libide/preferences/ide-preferences-builtin.c | 5 ++++-
libide/preferences/ide-preferences-group.c | 1 +
2 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/libide/preferences/ide-preferences-builtin.c b/libide/preferences/ide-preferences-builtin.c
index 44ebb14..89df557 100644
--- a/libide/preferences/ide-preferences-builtin.c
+++ b/libide/preferences/ide-preferences-builtin.c
@@ -85,7 +85,10 @@ ide_preferences_builtin_register_appearance (IdePreferences *preferences)
ide_preferences_add_radio (preferences, "appearance", "schemes", "org.gnome.builder.editor",
"style-scheme-name", variant_str, title, NULL, title, i);
}
- ide_preferences_add_list_group (preferences, "appearance", "draw-spaces", _("Whitespace Characters"), 300);
+ ide_preferences_add_group (preferences, "appearance", "background", NULL, 300);
+ ide_preferences_add_switch (preferences, "appearance", "background", "org.gnome.builder.editor",
"show-grid-lines", NULL, _("Grid Pattern"), _("Display a grid pattern beneath the source code"), NULL, 0);
+
+ ide_preferences_add_list_group (preferences, "appearance", "draw-spaces", _("Whitespace Characters"), 400);
ide_preferences_add_switch (preferences, "appearance", "draw-spaces", "org.gnome.builder.editor",
"draw-spaces", "\"space\"", _("Spaces"), NULL, NULL, 0);
ide_preferences_add_switch (preferences, "appearance", "draw-spaces", "org.gnome.builder.editor",
"draw-spaces", "\"tab\"", _("Tabs"), NULL, NULL, 1);
ide_preferences_add_switch (preferences, "appearance", "draw-spaces", "org.gnome.builder.editor",
"draw-spaces", "\"newline\"", _("New line and carriage return"), NULL, NULL, 2);
diff --git a/libide/preferences/ide-preferences-group.c b/libide/preferences/ide-preferences-group.c
index 10cc4e6..0f2b1b7 100644
--- a/libide/preferences/ide-preferences-group.c
+++ b/libide/preferences/ide-preferences-group.c
@@ -93,6 +93,7 @@ ide_preferences_group_set_property (GObject *object,
case PROP_TITLE:
gtk_label_set_label (self->title, g_value_get_string (value));
+ gtk_widget_set_visible (GTK_WIDGET (self->title), !!g_value_get_string (value));
break;
default:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]