[iagno] Ensure infobar is hidden before changing message
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [iagno] Ensure infobar is hidden before changing message
- Date: Mon, 30 Sep 2013 01:22:53 +0000 (UTC)
commit 826ea27758222c84929a3ed2cb7a532d8a4f416f
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 981398a..7da716f 100644
--- a/src/iagno.vala
+++ b/src/iagno.vala
@@ -307,8 +307,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]