[gnome-games] error-info-bar: Add response signal handler
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] error-info-bar: Add response signal handler
- Date: Mon, 11 Mar 2019 10:49:12 +0000 (UTC)
commit 29d2082635536b0a641c2fd6e36d9cd02100797f
Author: Yetizone <andreii lisita gmail com>
Date: Mon Feb 18 15:58:50 2019 +0200
error-info-bar: Add response signal handler
data/ui/error-info-bar.ui | 1 +
src/ui/error-info-bar.vala | 5 +++++
2 files changed, 6 insertions(+)
---
diff --git a/data/ui/error-info-bar.ui b/data/ui/error-info-bar.ui
index 78e44f09..ad62ae90 100644
--- a/data/ui/error-info-bar.ui
+++ b/data/ui/error-info-bar.ui
@@ -7,6 +7,7 @@
<property name="valign">start</property>
<property name="show-close-button">True</property>
<property name="message-type">error</property>
+ <signal name="response" handler="on_response"/>
<child internal-child="content_area">
<object class="GtkBox" id="content_area">
<child>
diff --git a/src/ui/error-info-bar.vala b/src/ui/error-info-bar.vala
index 06e7c24b..b2812509 100644
--- a/src/ui/error-info-bar.vala
+++ b/src/ui/error-info-bar.vala
@@ -13,4 +13,9 @@ private class Games.ErrorInfoBar : Gtk.InfoBar {
public string message {
set { label.label = value; }
}
+
+ [GtkCallback]
+ private void on_response () {
+ revealed = false;
+ }
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]