Esempio n. 1
0
        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());
            }
        }
Esempio n. 2
0
        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());
            }
        }