[iagno/gnome-3-8] Ensure infobar is hidden before changing message
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [iagno/gnome-3-8] Ensure infobar is hidden before changing message
- Date: Mon, 30 Sep 2013 01:32:48 +0000 (UTC)
commit 13c205efe3ab33116f725470b1153548bb89618b
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Sun Sep 29 20:21:37 2013 -0500
Ensure infobar is hidden before changing message
https://bugzilla.gnome.org/show_bug.cgi?id=708132
src/iagno.vala | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/src/iagno.vala b/src/iagno.vala
index 9f6af62..870e21e 100644
--- a/src/iagno.vala
+++ b/src/iagno.vala
@@ -311,8 +311,16 @@ public class Iagno : Gtk.Application
show_preferences_dialog ();
}
- private void show_message (string message, Gtk.MessageType type)
+ private async void show_message (string message, Gtk.MessageType type)
{
+ /* Bug #708132 */
+ infobar.hide ();
+ while (infobar.visible)
+ {
+ Idle.add (show_message.callback);
+ yield;
+ }
+
infobar.message_type = type;
infobar_label.set_label (message);
infobar.show ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]