[four-in-a-row/arnaudb/new-ui: 6/12] Remove the Preferences dialog.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [four-in-a-row/arnaudb/new-ui: 6/12] Remove the Preferences dialog.
- Date: Thu, 19 Dec 2019 19:50:24 +0000 (UTC)
commit 5fc67440c10b2af035979bcf03e5335c45a97bc4
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Tue Dec 17 20:03:44 2019 +0100
Remove the Preferences dialog.
The only remaining thing
is broken anyway. I keep
the underlying option as
it is working, but might
remove it in the future.
po/POTFILES.in | 2 -
po/POTFILES.skip | 2 -
src/four-in-a-row.vala | 20 ----
src/games-controls-list.vala | 232 -------------------------------------------
src/meson.build | 2 -
src/prefs-box.vala | 50 ----------
6 files changed, 308 deletions(-)
---
diff --git a/po/POTFILES.in b/po/POTFILES.in
index e094d2e..b19cd92 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -6,8 +6,6 @@ data/org.gnome.Four-in-a-row.appdata.xml.in
data/org.gnome.Four-in-a-row.desktop.in
data/org.gnome.Four-in-a-row.gschema.xml
src/four-in-a-row.vala
-src/games-controls-list.vala
src/prefs.vala
-src/prefs-box.vala
src/scorebox.vala
src/theme.vala
diff --git a/po/POTFILES.skip b/po/POTFILES.skip
index 41d5ed1..b54d3e5 100644
--- a/po/POTFILES.skip
+++ b/po/POTFILES.skip
@@ -1,6 +1,4 @@
src/four-in-a-row.c
-src/games-controls-list.c
src/prefs.c
-src/prefs-box.c
src/scorebox.c
src/theme.c
diff --git a/src/four-in-a-row.vala b/src/four-in-a-row.vala
index 6ee3745..dbe4930 100644
--- a/src/four-in-a-row.vala
+++ b/src/four-in-a-row.vala
@@ -73,7 +73,6 @@ private class FourInARow : Gtk.Application
private bool reset_score = false;
// widgets
- private PrefsBox? prefsbox = null;
private Scorebox scorebox;
private GameBoardView game_board_view;
private Board game_board;
@@ -102,7 +101,6 @@ private class FourInARow : Gtk.Application
{
{ "scores", on_game_scores },
{ "quit", on_game_exit },
- { "preferences", on_settings_preferences },
{ "help", on_help_contents },
{ "about", on_help_about }
};
@@ -675,11 +673,6 @@ private class FourInARow : Gtk.Application
}
}
- private inline void on_settings_preferences (/* SimpleAction action, Variant? parameter */)
- {
- prefsbox_open ();
- }
-
private inline void on_help_about (SimpleAction action, Variant? parameter)
{
const string authors [] = {
@@ -774,7 +767,6 @@ private class FourInARow : Gtk.Application
app_menu.append_section (null, section);
section = new GLib.Menu ();
- section.append (_("_Preferences"), "app.preferences");
section.append (_("_Help"), "app.help");
section.append (_("_About Four-in-a-row"), "app.about");
section.freeze ();
@@ -863,18 +855,6 @@ private class FourInARow : Gtk.Application
return true;
}
- private inline void prefsbox_open ()
- {
- if (prefsbox != null)
- {
- prefsbox.present ();
- return;
- }
-
- prefsbox = new PrefsBox (window);
- prefsbox.show_all ();
- }
-
/* Sound-related methods */
private GSound.Context sound_context;
diff --git a/src/meson.build b/src/meson.build
index bf0c9d2..83e3471 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -23,8 +23,6 @@ sources = files(
'game-board-view.vala',
'game-board.vala',
'game-window.vala',
- 'games-controls-list.vala',
- 'prefs-box.vala',
'prefs.vala',
'scorebox.vala',
'theme.vala',
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]