[gnome-chess/arnaudb/wip/gtk4: 41/54] Adapt to Button API.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-chess/arnaudb/wip/gtk4: 41/54] Adapt to Button API.
- Date: Thu, 13 Aug 2020 15:34:52 +0000 (UTC)
commit 34404a5cdd847c89017358a60545759f3ca58243
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Tue Apr 7 10:12:42 2020 +0200
Adapt to Button API.
src/gnome-chess.vala | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/src/gnome-chess.vala b/src/gnome-chess.vala
index 0e806c3..197c19c 100644
--- a/src/gnome-chess.vala
+++ b/src/gnome-chess.vala
@@ -1287,15 +1287,13 @@ Copyright © 2015–2016 Sahil Sareen""";
if (game != null && game.is_paused)
{
- pause_resume_button.image = new Image.from_icon_name ("media-playback-start-symbolic",
- IconSize.BUTTON);
- pause_resume_button.tooltip_text = _("Unpause the game");
+ pause_resume_button.set_icon_name ("media-playback-start-symbolic");
+ pause_resume_button.set_tooltip_text (_("Unpause the game"));
}
else
{
- pause_resume_button.image = new Image.from_icon_name ("media-playback-pause-symbolic",
- IconSize.BUTTON);
- pause_resume_button.tooltip_text = _("Pause the game");
+ pause_resume_button.set_icon_name ("media-playback-pause-symbolic");
+ pause_resume_button.set_tooltip_text (_("Pause the game"));
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]