Commit Graph

255 Commits

Author SHA1 Message Date
Jean-Marie Traissard 2ce13dc40e http://python.org/dev/peps/pep-0008/ " Comparisons to singletons like None should always be done with 'is' or 'is not', never the equality operators."
Comparisons to None part
roster_win.py is NOT checked here (waiting for modelfilter)
2008-04-18 00:02:56 +00:00
Travis Shirk 4b0ab39716 bumped (C) 2008-03-22 21:02:19 +00:00
Travis Shirk 8db2a68632 More sizing fixes. Along with [9408] closes #3713 2008-03-22 20:51:19 +00:00
Travis Shirk 00fe194744 Single window mode to any other resulted in the roster being the size of the roster + any chats that were in the orignal window. This fixes that. (#3713) 2008-03-22 18:19:56 +00:00
Yann Leboulanger b0d3e1f123 [shtrom] Disable CTRL+W when GTK has Emacs-like key mappings. Fixes #3738 2008-02-17 20:57:47 +00:00
Brendan Taylor c8cae71099 merged trunk 2008-02-14 02:20:07 +00:00
Nikos Kouremenos 15acf57f5f cosmetic changes 2008-02-06 14:59:28 +00:00
Yann Leboulanger 7e6bcdc6ed always show tabs in one_window mode so that we can close latest tab in GUI. fixes #3720 2008-02-06 09:45:15 +00:00
Nikos Kouremenos dea4d9f745 Merwok complained about left and right arrow on tab in chats couldn't allow him to do traversing. This patch is a almost there fix. What is missing after the new tab is focused, it steals focus [couldn't find how to fix that atm], hopefully Yann remembers nicfit's code better.. 2008-02-05 16:46:05 +00:00
Brendan Taylor 0b48b05218 merged trunk into session_centric branch 2008-02-05 03:09:31 +00:00
Jean-Marie Traissard 39fe7fc4c0 Remove saveposition. Now we always save and restore positions and sizes. See #3638. steve-e, this bug
is still opened for what you told ;)
2008-01-22 21:08:24 +00:00
Yann Leboulanger b3bafa75ff never move a window outside the screen. fixes #3501 2008-01-22 17:47:56 +00:00
Travis Shirk 4bedeec964 MessageWindow reconfig bug fixes for deleted roster 2007-12-20 03:40:27 +00:00
Travis Shirk 1a7b1672a7 Use show_all on the notebook and not the window when a new tab is added.
For example, if the roster is hidden in single UI mode and a new chat arrived the roster would unhide.
2007-12-20 03:11:44 +00:00
Travis Shirk 0afc7b2328 Merge one_window branch
Merged revisions 9143,9145-9155,9157-9162,9164-9169,9171-9177 via svnmerge from
svn://88.191.11.156/gajim/branches/one_window

........
  r9145 | nicfit | 2007-12-13 21:49:09 -0700 (Thu, 13 Dec 2007) | 2 lines

  Implemented the original Nikos patch with an HPaned instead of a HBox and only do this mode when one_message_window == 'always'
........
  r9152 | nicfit | 2007-12-15 13:33:56 -0700 (Sat, 15 Dec 2007) | 2 lines

  Added config and GUI for one_message_window_with_roster
........
  r9153 | nicfit | 2007-12-15 13:41:46 -0700 (Sat, 15 Dec 2007) | 2 lines

  Use one_message_window_with_roster and some whitespace cleanup
........
  r9154 | nicfit | 2007-12-15 14:04:49 -0700 (Sat, 15 Dec 2007) | 2 lines

  Scratch the chckbox for with roster mode, use one_message_window opt and combo
........
  r9155 | nicfit | 2007-12-15 17:01:13 -0700 (Sat, 15 Dec 2007) | 2 lines

  MessageWindowMgr knows about ONE_MESSAGE_WINDOW_ALWAYS_WITH_ROSTER and MessageWindow can reparent itself rather then the roster having to do so.
........
  r9157 | nicfit | 2007-12-15 17:47:20 -0700 (Sat, 15 Dec 2007) | 2 lines

  Resizing fixes and make the roster window shrink when last tab is removed
........
  r9158 | nicfit | 2007-12-15 19:15:11 -0700 (Sat, 15 Dec 2007) | 2 lines

  Added "Show roster" (CTRL+R) to view menu when using always_with_roster to quickly hide/show the roster.
........
  r9159 | nicfit | 2007-12-15 19:49:30 -0700 (Sat, 15 Dec 2007) | 2 lines

  Handle window title setting in always_with_roster mode.
........
  r9160 | nicfit | 2007-12-15 20:13:57 -0700 (Sat, 15 Dec 2007) | 2 lines

  Removed FIXME
........
  r9167 | nicfit | 2007-12-17 18:40:59 -0700 (Mon, 17 Dec 2007) | 2 lines

  When roster is hidden, show it when the number of MessageWindow controls == 0
........
  r9168 | nicfit | 2007-12-17 19:07:49 -0700 (Mon, 17 Dec 2007) | 2 lines

  Disable hiding roster when there are no message controls open
........
  r9169 | nicfit | 2007-12-17 20:41:11 -0700 (Mon, 17 Dec 2007) | 2 lines

  Bunch of saved size bugs fixed
........
2007-12-18 23:42:22 +00:00
Yann Leboulanger 24413948ab update gajim.last_message_time var when a room participant changes his nick. fixes #3555 2007-11-13 21:59:13 +00:00
Yann Leboulanger 605caae2b8 My name has changed 2007-10-22 11:33:50 +00:00
Yann Leboulanger 22c1aeda29 next release will be GPL v3. fixes #3290 2007-10-22 11:13:13 +00:00
Yann Leboulanger ec8044c4dc prevent infinite loop when pressing ctrl+PageUp / Down 2007-10-17 14:31:26 +00:00
Yann Leboulanger 0869ce362c Follow nick change in private message. fixes #3455 2007-10-13 14:37:22 +00:00
Yann Leboulanger 88cd5c3a50 [Davidov] use gtk.AccelGroup to handle key press. Fixes #1503. also fixes #3466 2007-10-10 16:13:16 +00:00
Yann Leboulanger f9a7a5c373 move accelerators tom (group)chat_control to message_window. fixes traceback with minimized groupchats 2007-09-16 09:02:04 +00:00
Yann Leboulanger 29cc2d0939 add key shortcut to open history and information window. fixes #3233 2007-09-15 10:11:46 +00:00
Stephan Erb 2fdeabc012 Add my copyright :-) 2007-08-31 23:19:23 +00:00
Yann Leboulanger 03dbf641de fix dubble disconnect of a handler. self.hid is already disconnected in _on_window_destroy function 2007-08-27 12:36:55 +00:00
Julien Pivotto 1dd251bb91 Better comment 2007-06-26 10:36:00 +00:00
Julien Pivotto 966a6f7a49 Fix a bug with closing tabs if GTK version >= 2.10.0 (don't disconnect
tab DnD)
2007-06-26 10:33:51 +00:00
Stephan Erb 7be506e3f5 Compact View:
* Move checkbox to preferences. Fixes #2662
 * Merge option for muc and chat
2007-06-25 23:51:44 +00:00
Julien Pivotto 9a4a6a7eda Use gtk native way to reorder tabs if gtk version >= 2.10 2007-06-25 21:46:08 +00:00
Julien Pivotto 786d63a430 Don't ask twice if we want to leave a groupchat. Fix #3245. 2007-06-17 15:59:46 +00:00
Yann Leboulanger 0a165c813b improve minimize on close code 2007-06-15 18:30:48 +00:00
Yann Leboulanger fb95530daf prevent TB when closing a window. fixes #3152 2007-05-07 20:18:22 +00:00
Julien Pivotto 253c7e6cfc (Fix #3034) Add ability to minimize groupchats in roster, and to minimize autojoigned bookmarked rooms at launch. 2007-05-03 21:02:50 +00:00
Jean-Marie Traissard 5e15b7c5f5 Small indent fix 2007-02-08 18:33:42 +00:00
Jean-Marie Traissard e6b3c40e97 Deleting control.display_names, useless var now 2007-02-08 18:32:10 +00:00
Jean-Marie Traissard d37e7d8e3e No space in indentation, checked by drpython (editor). /src part 2007-02-04 13:01:04 +00:00
Yann Leboulanger 8301700501 typo 2007-01-14 21:45:43 +00:00
Jean-Marie Traissard f041f8dd5e JID->Jabber ID in gc tooltip
if print_time==sometimes : Show the day if needed also. Use locale for time format (do
not force
24h)
Delete a lot of unused locale variables (thanks pychecker)
del gajim.py useless global vars after use
configpaths.py : use self. not this.
2006-11-21 18:46:33 +00:00
Yann Leboulanger 0e092980fd show unread pm in tab and in chat window title. fixes #2645 2006-11-10 23:17:52 +00:00
Jean-Marie Traissard 20dc155f65 Reset pending messages count in message_win even in more than one tab stay, delete
banners redraw when control whith same nick is present, it's related to accounts
now.
2006-11-09 00:06:03 +00:00
Yann Leboulanger aae7e7e99c allow shutdown func now get the method we used to close the tab. So that we check if a row is selected in gc control only if we close tab by pressing Esc key. fixes #2528 2006-10-10 15:53:42 +00:00
Yann Leboulanger f34c41c93b Di not ask "are you sure you want to leave room X" when we remove an account. We already replied to "you have opend chat windows". Fixes #2462 2006-10-03 08:54:14 +00:00
Nikos Kouremenos 9002b3d293 put my email (and jid), not one of my JIDs 2006-09-28 11:31:25 +00:00
Yann Leboulanger 8c243eab43 correctly change chat control/window account name when we change it. Fixes #2369 2006-09-15 09:22:52 +00:00
Yann Leboulanger a67eaba727 events are now saved in an Event class. show in roster/systray options in Advanced Notification Control (for incomming messages) now work. 2006-09-02 21:01:11 +00:00
Yann Leboulanger 8f449a4704 [geobert] add a ACE option so that ctrl+tab can or cannot go to next composing tab 2006-08-02 20:38:09 +00:00
Yann Leboulanger 1dcc955551 when we open a second tab and conversation textview was scrolled down in the forst one, scroll it down after we show tabs. Fixes #2190 2006-07-28 06:40:37 +00:00
Yann Leboulanger 3895724710 systray now saves unread messages even if it is not enabled (but module is present). Fixes #2134 2006-07-17 21:41:11 +00:00
Yann Leboulanger bc26593974 use gettext.install. Fixes #497 2006-06-15 06:49:04 +00:00
Jean-Marie Traissard 4b604a6485 Enhancement to ctrl+tab behaviour :
If no awaiting events, switch to composing contacts'tabs if any
2006-06-04 17:10:20 +00:00
Jean-Marie Traissard 5a78e29465 Also save width and height separetly for chats and gc when ONE_MSG_WINDOW_NEVER 2006-06-02 21:49:13 +00:00
Dimitur Kirov 5e6b016af1 split gtkgui.glade in several small glade
files, which are now located in data/glade/
2006-05-02 15:53:25 +00:00
Dimitur Kirov 5c9613db65 break more circular references that keep
objects alive (the other 1/2 of #1829)
context menu for groupchat banner
2006-04-18 15:36:16 +00:00
Dimitur Kirov b6ca28f342 make sure ChatControl instances are destroyed
when chat tab is closed
1/2 fixes #1829
2006-04-17 21:59:04 +00:00
Nikos Kouremenos f0f054af6b [Geobert] new compact view so important info are not hidden (f.e. chatstates) for maximum adjustment, see hide_* in ACE. fixes #1276 2006-04-10 12:09:05 +00:00
Yann Leboulanger c73abbab57 correctly handle resources when chat window get focus. Fixes #1785 2006-04-07 23:29:07 +00:00
Yann Leboulanger f727ef1c85 remove some useless import 2006-04-02 16:04:33 +00:00
Yann Leboulanger 111ea2c9b6 cleanup ichat mode code. No need of timeout. Fixes #1213 2006-03-31 20:08:47 +00:00
Nikos Kouremenos a573e7aa67 obey to coding standards 2006-03-28 12:01:27 +00:00
Nikos Kouremenos 1524521c7f pychecker on our files. everyone please have a look so we do not do the same mistakes and in case you catch a mistake I did when cleaning 2006-03-24 18:48:26 +00:00
Yann Leboulanger 721acff70f tab name and window title now contain resource if needed. see #1697 2006-03-15 08:46:44 +00:00
Yann Leboulanger 51d57ba717 last_message_time is now indexed by full_jid. for [1697] 2006-03-14 17:13:34 +00:00
Yann Leboulanger e76ac7f406 introduce get_full_jid for MessageControl. Fix TB when removing a tab with a resource. see #1697 2006-03-14 16:35:17 +00:00
Yann Leboulanger b1ce1107de we can now talk to a specific resource 2006-03-14 13:10:09 +00:00
Nikos Kouremenos e650cf3308 do not del print_time_timeout_id but set it to None. fixes #1691 2006-03-13 23:59:59 +00:00
Nikos Kouremenos bffcec6899 remove switch to menuitems. fixes #1674 2006-03-13 21:55:21 +00:00
Yann Leboulanger 658ca026ab remove unneeded call to update_ui 2006-03-13 18:22:44 +00:00
Yann Leboulanger 45ca90bbe1 fix TB 2006-03-05 09:46:37 +00:00
Travis Shirk 554b508e9f [Jim++] Patch for #1603 2006-03-03 13:58:52 +00:00
Yann Leboulanger b07bf11d0b [Jim] middle click on a tab closes it. Fixes #1554 2006-03-01 17:01:25 +00:00
Yann Leboulanger 8b1e70c396 add some newline 2006-02-21 20:23:16 +00:00
Travis Shirk 3ab1fb3539 More fixes for #1386 - Window titles and one_message_window PERTYPE mode 2006-02-12 21:22:49 +00:00
Travis Shirk f7d4bd7913 Added roles to some of the more often used windows.
This should help WMs like ion "do their thing" easier.
2006-02-12 21:04:15 +00:00
Nikos Kouremenos 04c5d6bfae we can now export from history manager to txt 2006-02-10 16:01:47 +00:00
Travis Shirk 1214f8d638 Window title mods for #1386 2006-02-10 04:21:41 +00:00
Nikos Kouremenos 3e4a3199d3 try to obey a bit to GNOME HIG about title 2006-02-08 22:14:48 +00:00
Travis Shirk 6d3696e83c Window title fix for #1386 2006-02-08 04:11:42 +00:00
Nikos Kouremenos 9b4b19f1df use sinqle quote; mark for transl; make comment for transl 2006-02-04 23:54:23 +00:00
Travis Shirk 61d50ec7fd Window title stuff for #1386 2006-02-04 23:47:40 +00:00
Travis Shirk 0977a93c7e Fixed copyrights 2006-02-03 07:48:10 +00:00
Travis Shirk 40211a41c7 ACE option to trun off having the Esc key close a control. Vi users do this by habit,
and it sucks losing a well thought out message.
2006-02-03 07:32:44 +00:00
Travis Shirk 065962ba86 Removed debug code from #1389 2006-02-01 01:48:43 +00:00
Yann Leboulanger 13d4262d68 remove fixed FIXME 2006-01-31 13:20:54 +00:00
Travis Shirk aeddca16b2 Count unread msgs correctly in systray tooltip, closes #1461 2006-01-31 04:03:34 +00:00
Travis Shirk 0d28a9dc58 Window title fixes for #1386 2006-01-27 04:59:05 +00:00
Travis Shirk fd20be2ea9 Debugging for #1389 2006-01-27 04:22:06 +00:00
Nikos Kouremenos ae88609125 80margin char and add a fixme about show() pbs 2006-01-26 12:20:49 +00:00
Nikos Kouremenos 53430cbc7c rm a commented out print 2006-01-25 14:11:19 +00:00
Nikos Kouremenos 138c0ae6fd clean up logic; make some stuff clearer; do not risk setting values to negatives to then skip them; just do not set if not needed 2006-01-25 14:01:59 +00:00
Nikos Kouremenos ffb93d6f8e rm an not needed assignment 2006-01-25 13:39:22 +00:00
Nikos Kouremenos e013490544 size --> resize and two or become one in 2006-01-25 13:37:22 +00:00
Nikos Kouremenos fb4682d0f2 better varnames; use range() 2006-01-25 13:34:02 +00:00
Nikos Kouremenos 29fef124a2 default msg window w and h is in glade now 2006-01-25 13:27:23 +00:00
Nikos Kouremenos faaa7d6dc4 fix docstrings, typos, remove logic which is not needed [the problem is elsewhere] 2006-01-25 13:24:38 +00:00
Travis Shirk 170a1db254 We can now chat with the same contact or join the same gc using two differenct account;
closes #1421
2006-01-25 05:39:07 +00:00
Travis Shirk a63132500b Pass account to window/control lookup methods 2006-01-25 02:43:55 +00:00
Travis Shirk b936ff50a0 Since some data structures are going to be changing for #1421, make more
use of the interators to jide more of the underlying details.
2006-01-24 02:57:26 +00:00
Travis Shirk 0650f0e493 Always use gtkgui_helpers.set_unset_urgency_hint to toggle urgency 2006-01-23 00:03:28 +00:00
Yann Leboulanger b8a87be784 DND of chat tabs is back, sorry. Fixes #1306 2006-01-20 20:44:56 +00:00
Yann Leboulanger 20be4777a5 show the MOVE cursor instead of the COPY cursor when dnding tabs 2006-01-20 15:51:33 +00:00
Travis Shirk e46fae242a Better window position memory 2006-01-20 03:37:41 +00:00
Travis Shirk 1fc8805b47 We now allow closing groupchats with the Esc key 2006-01-20 02:18:35 +00:00
Yann Leboulanger 5f689d0ad3 don't count messages that are not for us as new in gc when notif_on_all_muc_messages is False 2006-01-19 23:05:37 +00:00
Travis Shirk 7da113172c Resize to default when given bogus sizes 2006-01-19 03:12:10 +00:00
Travis Shirk 8e9a7c0bc3 PMs can be closed with Escape; #1422 2006-01-19 01:40:07 +00:00
Travis Shirk 74b7b3d578 CTRL+PGDN|PGUP restored. closes #1413 2006-01-19 01:30:18 +00:00
Travis Shirk 67fce64250 Dynamic reconfig for one_message_window config changes 2006-01-15 02:39:02 +00:00
Travis Shirk c4ad077b13 No negative size or positions for windows; closes #1389 2006-01-14 20:46:20 +00:00
Travis Shirk 931ee24389 Closes #1384 2006-01-13 04:36:42 +00:00
Nikos Kouremenos ccc78991b2 remove an assert and add a space above a method 2006-01-12 08:28:43 +00:00
Yann Leboulanger d945166749 remove some useless indentation and hide message window until a tab is inserted 2006-01-12 06:59:59 +00:00
Travis Shirk 1689ae3783 Window positioning/sizing, closes #1260 2006-01-12 05:45:30 +00:00
Travis Shirk f74831dd56 Don't show unread messages in window title when notify_on_all_muc_message is False. Closes #1384 2006-01-12 03:19:59 +00:00
Travis Shirk efed18a819 Tabs can be reordered using drag-and-drop thanks to Geobert Quach 2006-01-12 03:09:33 +00:00
Travis Shirk 43fddfccc5 Hide window until first tab is shown 2006-01-12 02:49:41 +00:00
Travis Shirk 55ac103ffb One window per type fix 2006-01-12 02:20:59 +00:00
Nikos Kouremenos 3dfb3cdcd8 control is CTRL not CTL 2006-01-11 22:30:49 +00:00
Nikos Kouremenos 7b926a5639 remove an assert 2006-01-11 22:25:35 +00:00
Nikos Kouremenos bd7098d4e3 clean up add a FIXME 2006-01-11 22:23:13 +00:00
Travis Shirk a6e633d7d5 Oops 2006-01-11 03:48:28 +00:00
Travis Shirk ff63d0c1bd Fixes for #1370, #1372, #1374 2006-01-10 19:24:06 +00:00
Yann Leboulanger d2ab3031f1 contact.name can now be empty. So use contact.get_shown_name() that returns a user friendly name 2006-01-10 18:30:57 +00:00
Travis Shirk 0da89c3996 /me works, room subject ellipses, and ui update fixes 2006-01-10 01:47:24 +00:00
Travis Shirk 2a794ba19e Fix up, look sharp 2006-01-09 00:47:54 +00:00
Travis Shirk a6bdc39d5d Private message bug fixes 2006-01-08 23:14:50 +00:00
Travis Shirk e53e786182 Trying to fix PM regression since merge 2006-01-08 07:50:26 +00:00
Travis Shirk eb27dbe61a Implemented #1260 2006-01-08 04:31:02 +00:00
Travis Shirk 2e5fe5173b Implemented #1356 2006-01-07 23:40:37 +00:00
Travis Shirk c0c30f961f fixed the POINTER_MOTION_MASK problem. Thanks Asterix! 2006-01-07 03:09:51 +00:00
Travis Shirk 2a5b0afc44 More groupchat goodness 2006-01-06 06:59:55 +00:00
Travis Shirk 8ab5887301 state update fixes 2006-01-06 01:48:59 +00:00
Travis Shirk 893f15aeee Working on GroupchatControl 2006-01-05 05:51:28 +00:00
Travis Shirk 715afc7113 Chatstate and tab redraw fixes 2006-01-05 02:58:59 +00:00
Travis Shirk 5464701cda A gc control and a chat control in the same window is realized. 2006-01-03 07:34:18 +00:00
Travis Shirk 311288907a The MessageWindowMgr now saves/restores window positions so that the
config mode can be used for smarter placement. Also the emotiocons menu keybinding
2006-01-03 05:49:09 +00:00
Travis Shirk deba09827c All code from chat.py and tabbed_chat.py has been merged into the new framework. Lot's of testing to follow and then onto groupchat *in the same window*, w00t! 2006-01-03 04:44:56 +00:00
Travis Shirk 9058126e73 Key binding fixes 2006-01-03 03:55:11 +00:00
Travis Shirk 2726e33172 All keybindings are working and with a biut less code duplication 2006-01-03 03:34:32 +00:00
Travis Shirk f195c47ea7 Migrating code into the new classes 2006-01-02 22:08:50 +00:00
Travis Shirk 8d42f5d0f0 Hooking up more pieces 2006-01-02 09:04:30 +00:00
Travis Shirk 4b59506c97 Moved MessageControl into it's own file to avoid circular depency 2006-01-02 02:12:34 +00:00
Travis Shirk 6036368b6e Window/control shutdown 2006-01-01 19:40:05 +00:00
Travis Shirk c30ee542dc Close to usable for chat, receiving messages, etc. 2005-12-31 21:55:44 +00:00
Travis Shirk 1102356937 Window and control lookup functions, and set_Active_tab 2005-12-31 17:00:04 +00:00
Travis Shirk fb5ca97eba Send chatstates and chat messages instead of normal 2005-12-31 08:13:20 +00:00
Travis Shirk 496199aaef Preliminary GroupchatControl support 2005-12-31 07:35:14 +00:00
Travis Shirk 008dfea48b More menus, compact mode, etc. 2005-12-31 07:19:43 +00:00
Travis Shirk fc6af37467 Config updating, tab label markup abstraction, auto window sizing/positioning, window title 2005-12-31 06:27:22 +00:00
Travis Shirk b7761d7256 Moved MessageWindowMgr singleton to gajim.interface and emoticon menu support 2005-12-31 04:53:14 +00:00
Travis Shirk 96d7dcbce2 Sending messages, and more framework 2005-12-31 03:53:48 +00:00