[banter-list] [PATCH] simple ui : Hide textchat button in chat window
- From: "Johnny Jacob" <johnnyjacob gmail com>
- To: banter-list gnome org
- Subject: [banter-list] [PATCH] simple ui : Hide textchat button in chat window
- Date: Mon, 6 Aug 2007 20:52:04 +0530
Thought that i'll send this patch along with other fixes. But not sure
whether i'll have time to work on them. so here it is :)
Inside chatwindow, i guess we dont need to show 'textchat' button.
Patch Attached.
- Johnny
Index: ChangeLog
===================================================================
--- ChangeLog (revision 256)
+++ ChangeLog (working copy)
@@ -1,3 +1,9 @@
+2007-08-06 Johnny Jacob <jjohnny svn gnome org>
+
+ * Banter/PersonCard.cd : Added a property to set/get TextChat
+ button's visibility.
+ * Banter/ChatWindow.cs : Hide 'TextChat' Button.
+
2007-08-06 Calvin Gaisford <calvinrg gmail com>
* configure.ac: Bumped version for 0.1.10 iteration
Index: Banter/ChatWindow.cs
===================================================================
--- Banter/ChatWindow.cs (revision 253)
+++ Banter/ChatWindow.cs (working copy)
@@ -202,6 +202,7 @@
card.Size = PersonCardSize.Medium;
// Not sure why but we need to call ShowAll on the PersonCard for it to display
card.ShowAll();
+ card.ShowTextChatButton = false;
personControlVBox.PackStart (card, true, true, 0);
HBox hbox = new HBox (false, 0);
Index: Banter/PersonCard.cs
===================================================================
--- Banter/PersonCard.cs (revision 253)
+++ Banter/PersonCard.cs (working copy)
@@ -105,6 +105,15 @@
}
///<summary>
+ /// Show or Hide TextChat Button
+ ///</summary>
+ public bool ShowTextChatButton
+ {
+ get { return textButton.Visible; }
+ set { textButton.Visible = value;}
+ }
+
+ ///<summary>
/// The size of the card to be rendered
///</summary>
public PersonCardSize Size
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]