about summary refs log tree commit diff stats
Commit message (Expand)AuthorAgeFilesLines
* Fix OSX compileJames Booth2016-04-267-46/+49
* Fixed cygwin compile (again)James Booth2016-04-261-1/+1
* Fixed cygwin compileJames Booth2016-04-262-3/+6
* Removed only add -lgio-2.0 manually on OSXJames Booth2016-04-261-0/+2
* Added include to fix testsJames Booth2016-04-261-0/+1
* Fixed functional test ID based stubsJames Booth2016-04-263-34/+34
* Implement XEP-0363: HTTP File UploadDominik Heidler2016-04-2624-29/+954
* Cache all disco items and features on connectDominik Heidler2016-04-203-1/+146
* Show correct tray icon immediately on enableJames Booth2016-04-181-1/+3
* Load/destroy tray icons on init/shutdownJames Booth2016-04-184-14/+14
* Moved gtk specific code to tray.cJames Booth2016-04-183-20/+42
* Grouped tray icon initialisation codeJames Booth2016-04-171-11/+9
* Remove redundant return value from _cmd_set_boolean_preferenceJames Booth2016-04-171-59/+70
* Merge remote-tracking branch 'asdil12/tray_config'James Booth2016-04-179-5/+60
|\
| * Make tray icon configurable using /tray cmdDominik Heidler2016-04-168-2/+72
|/
* Merge branch 'muc-hooks'James Booth2016-04-156-1/+91
|\
| * Merge branch 'master' into muc-hooksJames Booth2016-04-150-0/+0
| |\
| * | Plugins: Added more muc hooksJames Booth2016-04-157-4/+94
* | | Merge remote-tracking branch 'asdil12/help'James Booth2016-04-151-1/+13
|\ \ \ | |_|/ |/| |
| * | Add /command? shortcut to view /help commandDominik Heidler2016-04-131-1/+13
* | | Plugins fixed return values for python stanza hooksJames Booth2016-04-151-3/+3
| |/ |/|
* | Plugins: Added account_name and fulljid to prof_init hookJames Booth2016-04-136-11/+22
* | Only complete unloaded plugins on /plugins loadJames Booth2016-04-123-11/+12
* | Merge remote-tracking branch 'origin/python-path'James Booth2016-04-121-15/+5
|\ \ | |/ |/|
| * Execute python string to append plugin pathJames Booth2016-04-121-15/+5
|/
* Updated CHANGELOGJames Booth2016-04-111-2/+2
* Merge remote-tracking branch 'Dav1d23/master'James Booth2016-04-1110-9/+285
|\
| * Use log facilities instead of printing on the stderrDavid2016-04-101-1/+2
| * Re-introduce gtk_use booleanDavid2016-04-103-18/+21
| * libgtk is now optionalDavid2016-03-306-24/+43
| * This case was clearly not tested locally, so many failures here.David2016-03-131-1/+3
| * fix no gtk initDavid2016-03-133-9/+19
| * fix testsDavid2016-03-131-0/+1
| * typoDavid2016-03-131-1/+1
| * fix possible free(NULL)David2016-03-131-2/+6
| * Merge branch 'tray_icon' into HEADDavid2016-03-129-7/+240
| |\
| | * fixing leakingsDavid2016-03-122-4/+36
| | * read icons from local dirDavid2016-03-101-17/+38
| | * Fix icons when installed in share... it is working now!David2016-03-091-6/+17
| | * better, final iconsDavid2016-03-092-0/+0
| | * Use a folder to add iconsDavid2016-03-076-7/+39
| | * better iconsDavid2016-03-072-0/+0
| | * Introduce Tray Icon for ProfanityDavid2016-03-069-5/+142
* | | Fixed /plugins helpJames Booth2016-04-101-1/+1
* | | Added /plugins load commandJames Booth2016-04-108-39/+174
* | | Fixed typosJames Booth2016-04-091-7/+7
* | | Fixed timestamp for on_room_history_messageJames Booth2016-04-081-1/+1
* | | Plugins: Added on_room_history_messageJames Booth2016-04-087-0/+72
* | | Plugins: Added completer_clearJames Booth2016-04-078-0/+45
* | | Plugins: Added on_room_win_focusJames Booth2016-04-077-0/+53
ss="n">y = y self.assertEqual(is_in_box, point2 in disp) class TestDisplayableContainer(unittest.TestCase): def setUp(self): self.win = Fake() self.fm = Fake() self.env = Fake() self.settings = Fake() self.initdict = {'win': self.win, 'settings': self.settings, 'fm': self.fm, 'env': self.env} self.disp = Displayable(**self.initdict) self.disc = DisplayableContainer(**self.initdict) self.disc.add_child(self.disp) hei, wid = (100, 100) self.env.termsize = (hei, wid) def tearDown(self): self.disc.destroy() def test_container(self): self.assertTrue(self.disp in self.disc.container) def test_click(self): self.disp.click = raise_ok self.disc.resize(0, 0, 50, 50) self.disp.resize(0, 0, 20, 20) fakepos = Fake() fakepos.x = 10 fakepos.y = 10 self.assertRaises(OK, self.disc.click, fakepos) fakepos.x = 30 fakepos.y = 10 self.disc.click(fakepos) def test_focused_object(self): d1 = Displayable(**self.initdict) d2 = DisplayableContainer(**self.initdict) for obj in (Displayable(**self.initdict) for x in range(5)): d2.add_child(obj) d3 = DisplayableContainer(**self.initdict) for obj in (Displayable(**self.initdict) for x in range(5)): d3.add_child(obj) for obj in (d1, d2, d3): self.disc.add_child(obj) d3.container[3].focused = True self.assertEqual(self.disc._get_focused_obj(), d3.container[3]) d3.container[3].focused = False d2.container[0].focused = True self.assertEqual(self.disc._get_focused_obj(), d2.container[0]) if __name__ == '__main__': unittest.main()