[gnome-2048] Remove intial scoreboard implementation
- From: Juan R. Garcia Blanco <juanrgar src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-2048] Remove intial scoreboard implementation
- Date: Sat, 10 Jan 2015 10:19:57 +0000 (UTC)
commit 0fe22d2db2024f0fd0af964ffa9a928724550109
Author: Juan R. GarcĂa Blanco <juanrgar gmail com>
Date: Sat Jan 10 11:19:17 2015 +0100
Remove intial scoreboard implementation
data/scoreboard.ui | 87 --------------------------------------------------
po/POTFILES.in | 1 -
src/application.vala | 22 ------------
3 files changed, 0 insertions(+), 110 deletions(-)
---
diff --git a/po/POTFILES.in b/po/POTFILES.in
index b060ec3..761f563 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -6,5 +6,4 @@ data/gnome-2048.desktop.in
[type: gettext/glade]data/menus.ui
data/org.gnome.2048.gschema.xml
[type: gettext/glade]data/preferences.ui
-[type: gettext/glade]data/scoreboard.ui
src/application.vala
diff --git a/src/application.vala b/src/application.vala
index 83ac41a..177ae47 100644
--- a/src/application.vala
+++ b/src/application.vala
@@ -25,7 +25,6 @@ public class Application : Gtk.Application
private Gtk.Button _new_game_button;
private Gtk.AboutDialog _about_dialog;
private Gtk.Dialog _preferences_dialog;
- private Gtk.Dialog _scores_dialog;
private Gtk.Label _score;
private int _window_width;
@@ -70,7 +69,6 @@ public class Application : Gtk.Application
_create_window (builder);
_create_about_dialog ();
_create_preferences_dialog (builder);
- _create_scores_dialog (builder);
_game.new_game ();
}
@@ -118,7 +116,6 @@ public class Application : Gtk.Application
});
_game.finished.connect ((s) => {
_header_bar.subtitle = _("Game Over");
- _scores_dialog.present ();
debug ("finished");
});
}
@@ -223,25 +220,6 @@ public class Application : Gtk.Application
_settings.bind ("cols", builder.get_object ("colsspin"), "value", GLib.SettingsBindFlags.DEFAULT);
}
- private void _create_scores_dialog (Gtk.Builder builder)
- {
- try {
- builder.add_from_resource ("/org/gnome/gnome-2048/data/scoreboard.ui");
- } catch (GLib.Error e) {
- stderr.printf ("%s\n", e.message);
- }
-
- _scores_dialog = builder.get_object ("scoresdialog") as Gtk.Dialog;
- _scores_dialog.set_transient_for (_window);
-
- _scores_dialog.response.connect ((response_id) => {
- _scores_dialog.hide_on_delete ();
- });
- _scores_dialog.delete_event.connect ((response_id) => {
- return _scores_dialog.hide_on_delete ();
- });
- }
-
private void new_game_cb ()
{
_header_bar.subtitle = null;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]