public Popup ( ChatRoom selectedRoom ) : void | ||
selectedRoom | ChatRoom | |
return | void |
private void chatList_ButtonPressEvent(object o, ButtonPressEventArgs args) { TreePath path; if (chatList.GetPathAtPos((int)args.Event.X, (int)args.Event.Y, out path)) { chatList.Selection.SelectPath(path); } else { chatList.Selection.UnselectAll(); } if (args.Event.Button == 3) { ChatMenu menu = new ChatMenu(); menu.Popup(GetSelectedChatRoom()); } }
private void chatList_ButtonPressEvent(object o, ButtonPressEventArgs args) { TreePath path; if (chatList.GetPathAtPos ((int)args.Event.X, (int)args.Event.Y, out path)) chatList.Selection.SelectPath (path); else chatList.Selection.UnselectAll (); if (args.Event.Button == 3) { ChatMenu menu = new ChatMenu(); menu.Popup(GetSelectedChatRoom()); } }