[gnome-boxes] Codestyle corrections



commit 36ff2c9792a820bdaf2c01b86b8db3b3f6c06e19
Author: Lasse Schuirmann <lasse schuirmann gmail com>
Date:   Fri Apr 25 10:45:15 2014 +0200

    Codestyle corrections
    
    No line should exceed 120 characters.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=728930

 src/i-properties-provider.vala      |    5 ++++-
 src/libvirt-machine-properties.vala |   10 +++++++---
 src/libvirt-system-importer.vala    |    4 +++-
 src/spice-display.vala              |    4 +++-
 src/unattended-installer.vala       |    4 +++-
 src/util-app.vala                   |    3 ++-
 6 files changed, 22 insertions(+), 8 deletions(-)
---
diff --git a/src/i-properties-provider.vala b/src/i-properties-provider.vala
index 7a5020c..316bb70 100644
--- a/src/i-properties-provider.vala
+++ b/src/i-properties-provider.vala
@@ -151,7 +151,10 @@ public enum PropertyCreationFlag {
 private interface Boxes.IPropertiesProvider: GLib.Object {
     public abstract List<Boxes.Property> get_properties (Boxes.PropertiesPage page, ref PropertyCreationFlag 
flags);
 
-    protected Boxes.Property add_property (ref List<Boxes.Property> list, string? name, Widget widget, 
Widget? extra_widget = null) {
+    protected Boxes.Property add_property (ref List<Boxes.Property> list,
+                                           string? name,
+                                           Widget widget,
+                                           Widget? extra_widget = null) {
         var property = new Property (name, widget, extra_widget);
         list.append (property);
         return property;
diff --git a/src/libvirt-machine-properties.vala b/src/libvirt-machine-properties.vala
index 15d9291..8b365b6 100644
--- a/src/libvirt-machine-properties.vala
+++ b/src/libvirt-machine-properties.vala
@@ -60,7 +60,8 @@ private class Boxes.LibvirtMachineProperties: GLib.Object, Boxes.IPropertiesProv
             var info = machine.domain.get_info ();
             builder.append_printf ("Cpu time: %"+uint64.FORMAT_MODIFIER+"d\n", info.cpuTime);
             builder.append_printf ("Memory: %"+uint64.FORMAT_MODIFIER+"d KiB\n", info.memory);
-            builder.append_printf ("Max memory: %"+uint64.FORMAT_MODIFIER+"d KiB\n", 
machine.connection.get_node_info ().memory);
+            builder.append_printf ("Max memory: %"+uint64.FORMAT_MODIFIER+"d KiB\n",
+                                   machine.connection.get_node_info ().memory);
             builder.append_printf ("CPUs: %d\n", info.nrVirtCpu);
             builder.append_printf ("State: %s\n", info.state.to_string ());
         } catch (GLib.Error e) {
@@ -177,7 +178,8 @@ private class Boxes.LibvirtMachineProperties: GLib.Object, Boxes.IPropertiesProv
                         });
                         chooser.show_all ();
                     } else if (response_id == 101){
-                        Gtk.Clipboard.get_for_display (dialog.get_display (), 
Gdk.SELECTION_CLIPBOARD).set_text (log, -1);
+                        Gtk.Clipboard.get_for_display (dialog.get_display (),
+                                                       Gdk.SELECTION_CLIPBOARD).set_text (log, -1);
                     } else {
                         dialog.destroy ();
                     }
@@ -215,7 +217,9 @@ private class Boxes.LibvirtMachineProperties: GLib.Object, Boxes.IPropertiesProv
                     }
                 }
             } catch (GLib.Error error) {
-                warning ("Failed to fetch configuration for domain '%s': %s", machine.domain.get_name (), 
error.message);
+                warning ("Failed to fetch configuration for domain '%s': %s",
+                         machine.domain.get_name (),
+                         error.message);
             }
 
             if (!has_usb_redir)
diff --git a/src/libvirt-system-importer.vala b/src/libvirt-system-importer.vala
index e07ef84..c8cb676 100644
--- a/src/libvirt-system-importer.vala
+++ b/src/libvirt-system-importer.vala
@@ -86,7 +86,9 @@ private class Boxes.LibvirtSystemImporter: GLib.Object {
             });
     }
 
-    private void get_domain_info (Domain domain, out GVirConfig.Domain config, out string disk_path) throws 
GLib.Error {
+    private void get_domain_info (Domain domain,
+                                  out GVirConfig.Domain config,
+                                  out string disk_path) throws GLib.Error {
         debug ("Fetching config for '%s' from system libvirt.", domain.get_name ());
         config = domain.get_config (DomainXMLFlags.INACTIVE);
         debug ("Finding a suitable disk to import for '%s' from system libvirt.", domain.get_name ());
diff --git a/src/spice-display.vala b/src/spice-display.vala
index 05294dd..e930cdf 100644
--- a/src/spice-display.vala
+++ b/src/spice-display.vala
@@ -339,7 +339,9 @@ private class Boxes.SpiceDisplay: Boxes.Display {
                                             var box_name = get_box_name ();
                                             var msg = _("Redirection of USB device '%s' for '%s' failed");
                                             got_error (msg.printf (device_desc, box_name));
-                                            debug ("Error connecting %s to %s: %s", device_desc, box_name, 
err.message);
+                                            debug ("Error connecting %s to %s: %s",
+                                                   device_desc,
+                                                   box_name, err.message);
                                         }
                                     });
                                 } else {
diff --git a/src/unattended-installer.vala b/src/unattended-installer.vala
index 63aab12..b1848da 100644
--- a/src/unattended-installer.vala
+++ b/src/unattended-installer.vala
@@ -64,7 +64,9 @@ private class Boxes.UnattendedInstaller: InstallerMedia {
            cause deadlocks, see bug #676679. */
         if (accounts == null) {
             try {
-                accounts = Bus.get_proxy_sync (BusType.SYSTEM, "org.freedesktop.Accounts", 
"/org/freedesktop/Accounts");
+                accounts = Bus.get_proxy_sync (BusType.SYSTEM,
+                                               "org.freedesktop.Accounts",
+                                               "/org/freedesktop/Accounts");
             } catch (GLib.Error error) {
                 warning ("Failed to connect to D-Bus service '%s': %s", "org.freedesktop.Accounts", 
error.message);
             }
diff --git a/src/util-app.vala b/src/util-app.vala
index 920bf45..82f4fcd 100644
--- a/src/util-app.vala
+++ b/src/util-app.vala
@@ -225,7 +225,8 @@ namespace Boxes {
             string[] argv = {"virsh", "capabilities"};
 
             yield exec (argv, null, out standard_output);
-            var kvm = extract_xpath (standard_output, 
"string(/capabilities/guest[os_type='hvm']/arch/domain[ type='kvm']/emulator)");
+            var kvm = extract_xpath (standard_output,
+                                     "string(/capabilities/guest[os_type='hvm']/arch/domain[ 
type='kvm']/emulator)");
             return kvm.length != 0;
 
         } catch (GLib.SpawnError.NOEXEC error) {


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