[gnome-boxes] coding-style: Add space before (cast)
- From: Christophe Fergeau <teuf src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] coding-style: Add space before (cast)
- Date: Thu, 13 Jun 2013 07:18:11 +0000 (UTC)
commit 488f2fb9d7176954926041e4efbabff08b1bfc17
Author: Christophe Fergeau <cfergeau redhat com>
Date: Wed Jun 12 10:43:50 2013 +0200
coding-style: Add space before (cast)
https://bugzilla.gnome.org/show_bug.cgi?id=702011
src/box-config.vala | 8 ++++----
src/display-page.vala | 8 ++++----
src/editable-entry.vala | 2 +-
src/machine.vala | 2 +-
src/mini-graph.vala | 4 ++--
src/ovirt-machine.vala | 4 ++--
6 files changed, 14 insertions(+), 14 deletions(-)
---
diff --git a/src/box-config.vala b/src/box-config.vala
index 39dd816..4ca2754 100644
--- a/src/box-config.vala
+++ b/src/box-config.vala
@@ -45,10 +45,10 @@ public class Boxes.BoxConfig: GLib.Object, Boxes.IConfig {
construct {
access_properties = {
- SyncProperty () { name = "access-last-time", default_value = (int64)(-1) },
- SyncProperty () { name = "access-first-time", default_value = (int64)(-1) },
- SyncProperty () { name = "access-total-time", default_value = (int64)(-1) },
- SyncProperty () { name = "access-ntimes", default_value = (uint64)0 }
+ SyncProperty () { name = "access-last-time", default_value = (int64) (-1) },
+ SyncProperty () { name = "access-first-time", default_value = (int64) (-1) },
+ SyncProperty () { name = "access-total-time", default_value = (int64) (-1) },
+ SyncProperty () { name = "access-ntimes", default_value = (uint64) 0 }
};
}
diff --git a/src/display-page.vala b/src/display-page.vala
index a29f855..48f053a 100644
--- a/src/display-page.vala
+++ b/src/display-page.vala
@@ -74,8 +74,8 @@ private class Boxes.DisplayToolbar: Gd.MainToolbar {
if (!res && !base_event->triggers_context_menu ()) {
button_down = true;
button_down_button = event.button;
- button_down_x = (int)event.x;
- button_down_y = (int)event.y;
+ button_down_x = (int) event.x;
+ button_down_y = (int) event.y;
}
return res;
}
@@ -104,8 +104,8 @@ private class Boxes.DisplayToolbar: Gd.MainToolbar {
int root_x, root_y, width;
window.get_position (out root_x, out root_y);
window.get_window ().get_geometry (null, null, out width, null);
- window.begin_move_drag ((int)button_down_button,
- root_x + (int)((button_down_x / (double)old_width) * width),
+ window.begin_move_drag ((int) button_down_button,
+ root_x + (int) ((button_down_x / (double) old_width) * width),
root_y + button_down_y,
event.time);
App.app.disconnect (id);
diff --git a/src/editable-entry.vala b/src/editable-entry.vala
index 4f56262..3b1c8a8 100644
--- a/src/editable-entry.vala
+++ b/src/editable-entry.vala
@@ -102,7 +102,7 @@ private class Boxes.EditableEntry: Alignment {
if (weight_set)
desc.set_weight (_weight);
if (scale_set)
- desc.set_size ((int)(scale * desc.get_size ()));
+ desc.set_size ((int) (scale * desc.get_size ()));
entry.override_font (desc);
SignalHandler.unblock_by_func (entry, (void*)update_entry_font, this);
diff --git a/src/machine.vala b/src/machine.vala
index fcdab2f..e1885b9 100644
--- a/src/machine.vala
+++ b/src/machine.vala
@@ -363,7 +363,7 @@ private abstract class Boxes.Machine: Boxes.CollectionItem, Boxes.IPropertiesPro
if (large_screenshot != null) {
var pw = large_screenshot.get_width ();
var ph = large_screenshot.get_height ();
- var s = double.min ((double)SCREENSHOT_WIDTH / pw, (double)SCREENSHOT_HEIGHT / ph);
+ var s = double.min ((double) SCREENSHOT_WIDTH / pw, (double) SCREENSHOT_HEIGHT / ph);
int w = (int) (pw * s);
int h = (int) (ph * s);
diff --git a/src/mini-graph.vala b/src/mini-graph.vala
index f6ad28c..2724a62 100644
--- a/src/mini-graph.vala
+++ b/src/mini-graph.vala
@@ -59,9 +59,9 @@ private class Boxes.MiniGraph: Gtk.DrawingArea {
var dy = 0.0;
var dx = 0.0;
if (nstep != 0)
- dx = (double)width / nstep;
+ dx = (double) width / nstep;
if (ymax != 0)
- dy = (double)height / ymax;
+ dy = (double) height / ymax;
Gdk.cairo_set_source_rgba (cr, style.get_color (Gtk.StateFlags.NORMAL));
var x = 0.0;
diff --git a/src/ovirt-machine.vala b/src/ovirt-machine.vala
index 048a36f..b60ddd5 100644
--- a/src/ovirt-machine.vala
+++ b/src/ovirt-machine.vala
@@ -81,12 +81,12 @@ private class Boxes.OvirtMachine: Boxes.Machine {
switch (vm.display.type) {
case Ovirt.VmDisplayType.SPICE:
- var display = new SpiceDisplay (config, vm.display.address, (int)vm.display.port,
(int)vm.display.secure_port);
+ var display = new SpiceDisplay (config, vm.display.address, (int) vm.display.port, (int)
vm.display.secure_port);
display.ca_cert = proxy.ca_cert;
return display;
case Ovirt.VmDisplayType.VNC:
- return new VncDisplay (config, vm.display.address, (int)vm.display.port);
+ return new VncDisplay (config, vm.display.address, (int) vm.display.port);
default:
warning ("unsupported display of type %d", vm.display.type);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]