Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use warning instead of stderr.printf extensively.

  • Loading branch information...
commit 6851ae3be22634a13046ef8fa47397816337d932 1 parent ebb86e3
Daiki Ueno authored
Showing with 8 additions and 8 deletions.
  1. +8 −8 src/engine.vala
16 src/engine.vala
View
@@ -274,11 +274,11 @@ class SkkEngine : IBus.Engine {
if (dict != null)
dictionaries.add (dict);
} catch (PListParseError e) {
- stderr.printf ("can't parse plist \"%s\": %s\n",
- str, e.message);
+ warning ("can't parse plist \"%s\": %s",
+ str, e.message);
} catch (GLib.Error e) {
- stderr.printf ("can't open dictionary \"%s\": %s\n",
- str, e.message);
+ warning ("can't open dictionary \"%s\": %s",
+ str, e.message);
}
}
}
@@ -497,12 +497,12 @@ class SkkEngine : IBus.Engine {
uint prop_state)
{
if (prop_name == "setup") {
+ var filename = Path.build_filename (Config.LIBEXECDIR,
+ "ibus-setup-skk");
try {
- Process.spawn_command_line_async (
- Path.build_filename (Config.LIBEXECDIR,
- "ibus-setup-skk"));
+ Process.spawn_command_line_async (filename);
} catch (GLib.SpawnError e) {
- stderr.printf ("can't spawn ibus-setup-skk: %s\n", e.message);
+ warning ("can't spawn %s: %s", filename, e.message);
}
}
else if (prop_name.has_prefix ("InputMode.") &&
Please sign in to comment.
Something went wrong with that request. Please try again.