[smuxi/experiments/any_server_support: 33/34] Frontend-GNOME: fixed reconnect no longer shown in server chat menu regression
- From: Mirco M. M. Bauer <mmmbauer src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [smuxi/experiments/any_server_support: 33/34] Frontend-GNOME: fixed reconnect no longer shown in server chat menu regression
- Date: Sun, 9 Feb 2014 14:27:19 +0000 (UTC)
commit 733717341b428ff8a6b2c7d00c07a3b317362449
Author: Mirco Bauer <meebey meebey net>
Date: Sun Feb 9 15:09:53 2014 +0100
Frontend-GNOME: fixed reconnect no longer shown in server chat menu regression
This was a regression introduced in 43d61f10049f1b0a511f42d1f445cd19ff4b9bcb
src/Frontend-GNOME/Views/Chats/ProtocolChatView.cs | 14 +++++++++++---
1 files changed, 11 insertions(+), 3 deletions(-)
---
diff --git a/src/Frontend-GNOME/Views/Chats/ProtocolChatView.cs
b/src/Frontend-GNOME/Views/Chats/ProtocolChatView.cs
index 0a59dfa..c6861f0 100644
--- a/src/Frontend-GNOME/Views/Chats/ProtocolChatView.cs
+++ b/src/Frontend-GNOME/Views/Chats/ProtocolChatView.cs
@@ -1,7 +1,7 @@
/*
* Smuxi - Smart MUltipleXed Irc
*
- * Copyright (c) 2005-2006, 2009-2013 Mirco Bauer <meebey meebey net>
+ * Copyright (c) 2005-2006, 2009-2014 Mirco Bauer <meebey meebey net>
*
* Full GPL License: <http://www.gnu.org/licenses/gpl.txt>
*
@@ -131,8 +131,6 @@ namespace Smuxi.Frontend.Gnome
ReconnectItem = new Gtk.ImageMenuItem(_("Reconnect"));
ReconnectItem.Image = new Gtk.Image(Gtk.Stock.Refresh, Gtk.IconSize.Menu);
ReconnectItem.Activated += new EventHandler(OnTabMenuReconnectActivated);
- TabMenu.Prepend(ReconnectItem);
- TabMenu.ShowAll();
ShowAll();
}
@@ -370,6 +368,16 @@ namespace Smuxi.Frontend.Gnome
});
}
+ protected override void OnTabMenuShown(object sender, EventArgs e)
+ {
+ Trace.Call(sender, e);
+
+ base.OnTabMenuShown(sender, e);
+
+ TabMenu.Prepend(ReconnectItem);
+ TabMenu.ShowAll();
+ }
+
protected virtual void OnTabMenuReconnectActivated(object sender, EventArgs e)
{
Trace.Call(sender, e);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]