[gnome-nibbles/arnaudb/wip/gtk4: 13/40] Clean application startup.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-nibbles/arnaudb/wip/gtk4: 13/40] Clean application startup.
- Date: Tue, 16 Jun 2020 16:33:04 +0000 (UTC)
commit 2e4452b492aa6ddcd8c1fc2f6932a9e0e782c86f
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Sat May 30 18:46:54 2020 +0200
Clean application startup.
src/gnome-nibbles.vala | 12 ++++--------
1 file changed, 4 insertions(+), 8 deletions(-)
---
diff --git a/src/gnome-nibbles.vala b/src/gnome-nibbles.vala
index db4b058..4a7eae3 100644
--- a/src/gnome-nibbles.vala
+++ b/src/gnome-nibbles.vala
@@ -46,6 +46,10 @@ private class Nibbles : Gtk.Application
Intl.bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
Intl.textdomain (GETTEXT_PACKAGE);
+ Environment.set_prgname ("org.gnome.Nibbles");
+ Environment.set_application_name (PROGRAM_NAME);
+ Window.set_default_icon_name ("org.gnome.Nibbles");
+
return new Nibbles ().run (args);
}
@@ -73,14 +77,6 @@ private class Nibbles : Gtk.Application
{
base.startup ();
- unowned string[]? argv = null;
- GtkClutter.init (ref argv);
-
- Environment.set_prgname ("org.gnome.Nibbles");
- Environment.set_application_name (PROGRAM_NAME);
-
- Window.set_default_icon_name ("org.gnome.Nibbles");
-
Gtk.Settings.get_default ().@set ("gtk-application-prefer-dark-theme", true);
var css_provider = new CssProvider ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]