[dconf-editor] Correct indentation.
- From: Arnaud Bonatti <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dconf-editor] Correct indentation.
- Date: Sat, 18 Apr 2015 06:09:49 +0000 (UTC)
commit 7566f119e5818c0db089a5473efdf1d3e2783dd1
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Sat Apr 18 08:09:30 2015 +0200
Correct indentation.
editor/dconf-editor.vala | 8 ++++----
editor/dconf-model.vala | 22 +++++++++++-----------
editor/dconf-schema.vala | 6 +++---
editor/dconf-view.vala | 4 ++--
4 files changed, 20 insertions(+), 20 deletions(-)
---
diff --git a/editor/dconf-editor.vala b/editor/dconf-editor.vala
index 17404d8..34ab267 100644
--- a/editor/dconf-editor.vala
+++ b/editor/dconf-editor.vala
@@ -427,10 +427,10 @@ class ConfigurationEditor : Gtk.Application
public static int main(string[] args)
{
- Intl.setlocale (LocaleCategory.ALL, "");
- Intl.bindtextdomain (Config.GETTEXT_PACKAGE, Config.LOCALEDIR);
- Intl.bind_textdomain_codeset (Config.GETTEXT_PACKAGE, "UTF-8");
- Intl.textdomain (Config.GETTEXT_PACKAGE);
+ Intl.setlocale (LocaleCategory.ALL, "");
+ Intl.bindtextdomain (Config.GETTEXT_PACKAGE, Config.LOCALEDIR);
+ Intl.bind_textdomain_codeset (Config.GETTEXT_PACKAGE, "UTF-8");
+ Intl.textdomain (Config.GETTEXT_PACKAGE);
var app = new ConfigurationEditor();
return app.run(args);
diff --git a/editor/dconf-model.vala b/editor/dconf-model.vala
index 49326dd..adac906 100644
--- a/editor/dconf-model.vala
+++ b/editor/dconf-model.vala
@@ -118,11 +118,11 @@ public class Key : GLib.Object
public signal void value_changed();
- void item_changed (string key)
+ void item_changed (string key)
{
- if ((key.has_suffix ("/") && full_name.has_prefix (key)) || key == full_name)
- value_changed ();
- }
+ if ((key.has_suffix ("/") && full_name.has_prefix (key)) || key == full_name)
+ value_changed ();
+ }
public Key(SettingsModel model, Directory parent, string name, string full_name)
{
@@ -132,7 +132,7 @@ public class Key : GLib.Object
this.full_name = full_name;
this.schema = model.schemas.keys.lookup(full_name);
- model.item_changed.connect (item_changed);
+ model.item_changed.connect (item_changed);
}
public void set_to_default()
@@ -575,13 +575,13 @@ public class SettingsModel: GLib.Object, Gtk.TreeModel
public DConf.Client client;
private Directory root;
- public signal void item_changed (string key);
+ public signal void item_changed (string key);
- void watch_func (DConf.Client client, string path, string[] items, string? tag) {
- foreach (var item in items) {
- item_changed (path + item);
- }
- }
+ void watch_func (DConf.Client client, string path, string[] items, string? tag) {
+ foreach (var item in items) {
+ item_changed (path + item);
+ }
+ }
public SettingsModel()
{
diff --git a/editor/dconf-schema.vala b/editor/dconf-schema.vala
index 8f7f356..6f655a2 100644
--- a/editor/dconf-schema.vala
+++ b/editor/dconf-schema.vala
@@ -28,9 +28,9 @@ public class SchemaKey
type = "s";
enum_name = prop->children->content;
}
- else if (prop->name == "flags")
- /* TODO: support this properly */
- type = "as";
+ else if (prop->name == "flags")
+ /* TODO: support this properly */
+ type = "as";
else
warning ("Unknown property on <key>, %s", prop->name);
}
diff --git a/editor/dconf-view.vala b/editor/dconf-view.vala
index d49bccf..626106d 100644
--- a/editor/dconf-view.vala
+++ b/editor/dconf-view.vala
@@ -318,11 +318,11 @@ public class DConfKeyView : Gtk.TreeView
{
public DConfKeyView()
{
- /* Translators: this is the column header label in the main view */
+ /* Translators: this is the column header label in the main view */
var column = new Gtk.TreeViewColumn.with_attributes(_("Name"), new Gtk.CellRendererText(), "text",
1, "weight", 4, null);
/*column.set_sort_column_id(1);*/
append_column(column);
- /* Translators: this is the column header label in the main view */
+ /* Translators: this is the column header label in the main view */
insert_column_with_attributes(-1, _("Value"), new KeyValueRenderer(this), "key", 0, null);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]