From 25a00d8d94c2eb9dbd57b7837c24a6788ae742d7 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Fri, 5 Aug 2011 12:20:19 -0400 Subject: code style fixups to match the rest of caribou particularly, add spaces before function call parentheses --- modules/gtk3/caribou-gtk-module.vala | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) (limited to 'modules') 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(); + windows = new GLib.List (); try { keyboard = Bus.get_proxy_sync (BusType.SESSION, "org.gnome.Caribou.Keyboard", @@ -35,11 +35,11 @@ namespace Caribou { private void add_tracker () { GLib.List 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); } } } -- cgit v1.2.1