[gnome-chess] Stop using custom markup on message dialogs
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-chess] Stop using custom markup on message dialogs
- Date: Tue, 8 Apr 2014 00:40:54 +0000 (UTC)
commit 8a588487b5580f8954e7e5747554f14bafb8951d
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Mon Apr 7 19:40:03 2014 -0500
Stop using custom markup on message dialogs
Get with the new style. It's lightweight and not bold and not large.
That is, it's the default.
src/gnome-chess.vala | 22 ++++++++++------------
1 files changed, 10 insertions(+), 12 deletions(-)
---
diff --git a/src/gnome-chess.vala b/src/gnome-chess.vala
index 9872b51..dd0e515 100644
--- a/src/gnome-chess.vala
+++ b/src/gnome-chess.vala
@@ -1273,12 +1273,11 @@ public class Application : Gtk.Application
if (!game_needs_saving)
return true;
- var dialog = new Gtk.MessageDialog.with_markup (window,
- Gtk.DialogFlags.MODAL,
- Gtk.MessageType.QUESTION,
- Gtk.ButtonsType.NONE,
- "<span weight=\"bold\" size=\"larger\">%s</span>",
- prompt_text);
+ var dialog = new Gtk.MessageDialog (window,
+ Gtk.DialogFlags.MODAL,
+ Gtk.MessageType.QUESTION,
+ Gtk.ButtonsType.NONE,
+ prompt_text);
dialog.add_button (_("_Cancel"), Gtk.ResponseType.CANCEL);
if (game.result == ChessResult.IN_PROGRESS)
@@ -1335,12 +1334,11 @@ public class Application : Gtk.Application
{
game.pause ();
- var dialog = new Gtk.MessageDialog.with_markup (window,
- Gtk.DialogFlags.MODAL,
- Gtk.MessageType.INFO,
- Gtk.ButtonsType.CLOSE,
- "<span weight=\"bold\"
size=\"larger\">%s</span>",
- _("You cannot currently claim a draw."));
+ var dialog = new Gtk.MessageDialog (window,
+ Gtk.DialogFlags.MODAL,
+ Gtk.MessageType.INFO,
+ Gtk.ButtonsType.CLOSE,
+ _("You cannot currently claim a draw."));
var repetitions = game.state_repeated_times (game.current_state);
var moves = game.current_state.halfmove_clock / 2;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]