summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDan Winship <danw@gnome.org>2011-08-05 12:20:19 -0400
committerEitan Isaacson <eitan@monotonous.org>2011-08-12 09:19:40 +0200
commit25a00d8d94c2eb9dbd57b7837c24a6788ae742d7 (patch)
tree4bfa796689341ecbf2bb60aa88496d28067b3531 /modules
parent06ef2d72bb2b5bef2610e605b03013244c1b4b23 (diff)
downloadcaribou-25a00d8d94c2eb9dbd57b7837c24a6788ae742d7.tar.gz
code style fixups to match the rest of caribou
particularly, add spaces before function call parentheses
Diffstat (limited to 'modules')
-rw-r--r--modules/gtk3/caribou-gtk-module.vala23
1 files changed, 11 insertions, 12 deletions
diff --git a/modules/gtk3/caribou-gtk-module.vala b/modules/gtk3/caribou-gtk-module.vala
index 5c0f062..c5e230d 100644
--- a/modules/gtk3/caribou-gtk-module.vala
+++ b/modules/gtk3/caribou-gtk-module.vala
@@ -14,7 +14,7 @@ namespace Caribou {
private Keyboard keyboard;
public GtkModule () {
- windows = new GLib.List<Gtk.Window>();
+ windows = new GLib.List<Gtk.Window> ();
try {
keyboard = Bus.get_proxy_sync (BusType.SESSION,
"org.gnome.Caribou.Keyboard",
@@ -35,11 +35,11 @@ namespace Caribou {
private void add_tracker () {
GLib.List<weak Gtk.Window> toplevels;
- toplevels = Gtk.Window.list_toplevels();
+ toplevels = Gtk.Window.list_toplevels ();
foreach (Gtk.Window window in toplevels) {
- if (windows.find(window) == null) {
- window.notify["has-toplevel-focus"].connect(has_top_level_focus_changed);
- windows.append(window);
+ if (windows.find (window) == null) {
+ window.notify["has-toplevel-focus"].connect (has_top_level_focus_changed);
+ windows.append (window);
}
}
}
@@ -49,11 +49,11 @@ namespace Caribou {
if (!window.has_toplevel_focus)
return;
- Gtk.Widget? widget = window.get_focus();
- uint32 timestamp = Gtk.get_current_event_time();
+ Gtk.Widget? widget = window.get_focus ();
+ uint32 timestamp = Gtk.get_current_event_time ();
if (widget != null && (widget is Gtk.Entry || widget is Gtk.TextView) && widget is Gtk.Editable) {
- Gdk.Window current_window = widget.get_window();
- int x=0, y=0, w=0, h=0;
+ Gdk.Window current_window = widget.get_window ();
+ int x = 0, y = 0, w = 0, h = 0;
if (current_window != null)
get_origin_geometry (current_window, out x, out y, out w, out h);
@@ -63,12 +63,11 @@ namespace Caribou {
} catch (IOError e) {
stderr.printf ("%s\n", e.message);
}
- }
- else {
+ } else {
try {
keyboard.hide (timestamp);
} catch (IOError e) {
- stderr.printf("%s\n", e.message);
+ stderr.printf ("%s\n", e.message);
}
}
}