[gnome-boxes] Suppress redundant clutter_init ()
- From: Marc-Andre Lureau <malureau src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] Suppress redundant clutter_init ()
- Date: Wed, 5 Oct 2011 21:20:51 +0000 (UTC)
commit 13fd081439c316307014d22fd330ebd406d742d6
Author: Marc-Andrà Lureau <marcandre lureau gmail com>
Date: Wed Oct 5 23:16:36 2011 +0200
Suppress redundant clutter_init ()
src/main.vala | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/src/main.vala b/src/main.vala
index 0f0ea22..3a4dafa 100644
--- a/src/main.vala
+++ b/src/main.vala
@@ -2,15 +2,18 @@
using Config;
using Posix;
+// FIXME: vala includes header incorrectly, this will make sure config.h comes on top...
+static const string foo_ = GNOMELOCALEDIR;
+
private static bool version;
private const OptionEntry[] options = {
- { "version", 0, 0, OptionArg.NONE, ref version, "Display version number", null },
+ { "version", 0, 0, OptionArg.NONE, ref version, N_("Display version number"), null },
{ null }
};
private static void parse_args (ref unowned string[] args) {
- var parameter_string = "- " + PACKAGE_TARNAME;
+ var parameter_string = _("- A simple application to access remote or virtual machines");
var opt_context = new OptionContext (parameter_string);
opt_context.set_help_enabled (true);
opt_context.set_ignore_unknown_options (true);
@@ -19,6 +22,7 @@ private static void parse_args (ref unowned string[] args) {
opt_context.add_group (Cogl.get_option_group ());
opt_context.add_group (Clutter.get_option_group_without_init ());
opt_context.add_group (GtkClutter.get_option_group ());
+ // FIXME: add spice
try {
opt_context.parse (ref args);
@@ -41,7 +45,6 @@ public void main (string[] args) {
Intl.textdomain (GETTEXT_PACKAGE);
GLib.Environment.set_application_name (_("GNOME Boxes"));
- GtkClutter.init (ref args);
parse_args (ref args);
Gtk.Window.set_default_icon_name ("gnome-boxes");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]