[gnome-games] application: Code style fix
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] application: Code style fix
- Date: Mon, 19 Aug 2019 16:37:06 +0000 (UTC)
commit 6494abf0281a151e1aad45c19ab372b3d2703b4f
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date: Mon Aug 19 15:25:22 2019 +0500
application: Code style fix
Use var instead of SimpleAction.
src/ui/application.vala | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/ui/application.vala b/src/ui/application.vala
index f32340ef..97037cc4 100644
--- a/src/ui/application.vala
+++ b/src/ui/application.vala
@@ -49,23 +49,23 @@ public class Games.Application : Gtk.Application {
}
private void add_actions () {
- SimpleAction preferences_action = new SimpleAction ("preferences", null);
+ var preferences_action = new SimpleAction ("preferences", null);
preferences_action.activate.connect (preferences);
add_action (preferences_action);
- SimpleAction help_action = new SimpleAction ("help", null);
+ var help_action = new SimpleAction ("help", null);
help_action.activate.connect (help);
add_action (help_action);
- SimpleAction about_action = new SimpleAction ("about", null);
+ var about_action = new SimpleAction ("about", null);
about_action.activate.connect (about);
add_action (about_action);
- SimpleAction quit_action = new SimpleAction ("quit", null);
+ var quit_action = new SimpleAction ("quit", null);
quit_action.activate.connect (quit_application);
add_action (quit_action);
- SimpleAction add_game_files_action = new SimpleAction ("add-game-files", null);
+ var add_game_files_action = new SimpleAction ("add-game-files", null);
add_game_files_action.activate.connect (add_game_files);
add_action (add_game_files_action);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]