[atomato] Fix indenting
- From: Rodrigo Moya <rodrigo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [atomato] Fix indenting
- Date: Thu, 4 Feb 2016 15:55:55 +0000 (UTC)
commit 539f8d06d33173377736a81ed6fe1b00f89fb9b5
Author: Rodrigo Moya <rodrigo gnome-db org>
Date: Sat Jan 23 12:41:17 2016 +0100
Fix indenting
src/library-list.vala | 36 ++++++++++++++++++------------------
src/main-window.vala | 36 ++++++++++++++++++------------------
src/main.vala | 40 ++++++++++++++++++++--------------------
src/workflow-editor.vala | 16 ++++++++--------
4 files changed, 64 insertions(+), 64 deletions(-)
---
diff --git a/src/library-list.vala b/src/library-list.vala
index efc7387..6df39cc 100644
--- a/src/library-list.vala
+++ b/src/library-list.vala
@@ -24,26 +24,26 @@ using Gtk;
namespace Atomato
{
- public class LibraryList : Gtk.Box
- {
- Gtk.TreeView library_list;
- Gtk.TreeView action_list;
+ public class LibraryList : Gtk.Box
+ {
+ Gtk.TreeView library_list;
+ Gtk.TreeView action_list;
- public LibraryList ()
- {
- Object (orientation: Gtk.Orientation.HORIZONTAL);
+ public LibraryList ()
+ {
+ Object (orientation: Gtk.Orientation.HORIZONTAL);
- library_list = new Gtk.TreeView ();
- library_list.insert_column_with_attributes (-1, "Library", new Gtk.CellRendererText (), "text",
0);
- library_list.show ();
- pack_start (library_list);
+ library_list = new Gtk.TreeView ();
+ library_list.insert_column_with_attributes (-1, "Library", new Gtk.CellRendererText
(), "text", 0);
+ library_list.show ();
+ pack_start (library_list);
- action_list = new Gtk.TreeView ();
- action_list.insert_column_with_attributes (-1, "Action", new Gtk.CellRendererText (), "text", 0);
- action_list.show ();
- pack_start (action_list);
+ action_list = new Gtk.TreeView ();
+ action_list.insert_column_with_attributes (-1, "Action", new Gtk.CellRendererText (),
"text", 0);
+ action_list.show ();
+ pack_start (action_list);
- show ();
- }
- }
+ show ();
+ }
+ }
}
diff --git a/src/main-window.vala b/src/main-window.vala
index c410d9b..3fa16c0 100644
--- a/src/main-window.vala
+++ b/src/main-window.vala
@@ -24,27 +24,27 @@ using Gtk;
namespace Atomato
{
- public class MainWindow : Gtk.ApplicationWindow
- {
- Gtk.Paned main_container;
- LibraryList library_list;
- WorkflowEditor workflow_editor;
+ public class MainWindow : Gtk.ApplicationWindow
+ {
+ Gtk.Paned main_container;
+ LibraryList library_list;
+ WorkflowEditor workflow_editor;
- public MainWindow (Atomato.Application app)
- {
- Object (application: app);
+ public MainWindow (Atomato.Application app)
+ {
+ Object (application: app);
- main_container = new Gtk.Paned (Gtk.Orientation.HORIZONTAL);
- add (main_container);
+ main_container = new Gtk.Paned (Gtk.Orientation.HORIZONTAL);
+ add (main_container);
- library_list = new LibraryList ();
- main_container.add1 (library_list);
+ library_list = new LibraryList ();
+ main_container.add1 (library_list);
- workflow_editor = new WorkflowEditor ();
- main_container.add2 (workflow_editor);
+ workflow_editor = new WorkflowEditor ();
+ main_container.add2 (workflow_editor);
- main_container.show ();
- show ();
- }
- }
+ main_container.show ();
+ show ();
+ }
+ }
}
diff --git a/src/main.vala b/src/main.vala
index 7bfb294..04b7f0d 100644
--- a/src/main.vala
+++ b/src/main.vala
@@ -27,23 +27,23 @@ namespace Atomato
public class Application : Gtk.Application
{
const OptionEntry[] option_entries = {
- { "version", 'v', 0, OptionArg.NONE, null, N_("Print version information and exit"), null },
- { null }
- };
+ { "version", 'v', 0, OptionArg.NONE, null, N_("Print version information and exit"),
null },
+ { null }
+ };
- const GLib.ActionEntry[] action_entries = {
- { "quit", on_quit_activate }
- };
+ const GLib.ActionEntry[] action_entries = {
+ { "quit", on_quit_activate }
+ };
protected override void activate ()
{
- new MainWindow (this);
- }
+ new MainWindow (this);
+ }
public static new Application get_default ()
{
- return (Application) GLib.Application.get_default ();
- }
+ return (Application) GLib.Application.get_default ();
+ }
protected override void startup ()
{
@@ -52,13 +52,13 @@ namespace Atomato
protected override int handle_local_options (GLib.VariantDict options)
{
- if (options.contains("version")) {
- print ("%s %s\n", Environment.get_application_name (), Config.VERSION);
- return 0;
- }
+ if (options.contains("version")) {
+ print ("%s %s\n", Environment.get_application_name (), Config.VERSION);
+ return 0;
+ }
- return -1;
- }
+ return -1;
+ }
protected override void shutdown ()
{
@@ -67,11 +67,11 @@ namespace Atomato
public Application ()
{
- Object (application_id: "org.gnome.atomato", flags: ApplicationFlags.HANDLES_OPEN);
+ Object (application_id: "org.gnome.atomato", flags: ApplicationFlags.HANDLES_OPEN);
- add_main_option_entries (option_entries);
- add_action_entries (action_entries, this);
- }
+ add_main_option_entries (option_entries);
+ add_action_entries (action_entries, this);
+ }
void on_quit_activate ()
{
diff --git a/src/workflow-editor.vala b/src/workflow-editor.vala
index 590ebe7..9fe88f0 100644
--- a/src/workflow-editor.vala
+++ b/src/workflow-editor.vala
@@ -24,13 +24,13 @@ using Gtk;
namespace Atomato
{
- public class WorkflowEditor : Gtk.Box
- {
- public WorkflowEditor ()
- {
- Object (orientation: Gtk.Orientation.VERTICAL);
+ public class WorkflowEditor : Gtk.Box
+ {
+ public WorkflowEditor ()
+ {
+ Object (orientation: Gtk.Orientation.VERTICAL);
- show ();
- }
- }
+ show ();
+ }
+ }
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]