Module roster_window :: Class RosterWindow
[hide private]
[frames] | no frames]

Class RosterWindow

source code

Class for main window of the GTK+ interface
Instance Methods [hide private]
 
_get_account_iter(self, name, model=None)
Return the gtk.TreeIter of the given account or None if not found
source code
 
_get_group_iter(self, name, account, model=None)
Return the gtk.TreeIter of the given group or None if not found
source code
 
_get_self_contact_iter(self, account, model=None)
Return the gtk.TreeIter of SelfContact or None if not found
source code
 
_get_contact_iter(self, jid, account, contact=None, model=None)
Return a list of gtk.TreeIter of the given contact
source code
 
_iter_is_separator(self, model, titer)
Return True if the given iter is a separator
source code
 
_iter_contact_rows(self, model=None)
Iterate over all contact rows in given model
source code
 
add_account(self, account)
Add account to roster and draw it.
source code
 
add_account_contacts(self, account)
Add all contacts and groups of the given account to roster, draw them and account
source code
 
_add_entity(self, contact, account, groups=None, big_brother_contact=None, big_brother_account=None)
Add the given contact to roster data model
source code
 
_remove_entity(self, contact, account, groups=None)
Remove the given contact from roster data model
source code
 
_add_metacontact_family(self, family, account)
Add the give Metacontact family to roster data model
source code
 
_remove_metacontact_family(self, family, account)
Remove the given Metacontact family from roster data model
source code
 
_recalibrate_metacontact_family(self, family, account)
Regroup metacontact family if necessary
source code
 
_get_nearby_family_and_big_brother(self, family, account) source code
 
_add_self_contact(self, account)
Add account's SelfContact to roster and draw it and the account
source code
 
redraw_metacontacts(self, account) source code
 
add_contact(self, jid, account)
Add contact to roster and draw him
source code
 
remove_contact(self, jid, account, force=False, backend=False)
Remove contact from roster
source code
 
rename_self_contact(self, old_jid, new_jid, account)
Rename the self_contact jid
source code
 
add_groupchat(self, jid, account, status='')
Add groupchat to roster and draw it.
source code
 
remove_groupchat(self, jid, account)
Remove groupchat from roster and redraw account and group
source code
 
add_transport(self, jid, account)
Add transport to roster and draw it.
source code
 
remove_transport(self, jid, account)
Remove transport from roster and redraw account and group
source code
 
rename_group(self, old_name, new_name, account)
Rename a roster group
source code
 
add_contact_to_groups(self, jid, account, groups, update=True)
Add contact to given groups and redraw them
source code
 
remove_contact_from_groups(self, jid, account, groups, update=True)
Remove contact from given groups and redraw them
source code
 
remove_newly_added(self, jid, account) source code
 
remove_to_be_removed(self, jid, account) source code
 
add_to_not_in_the_roster(self, account, jid, nick='', resource='') source code
 
draw_account(self, account) source code
 
draw_group(self, group, account) source code
 
draw_parent_contact(self, jid, account) source code
 
draw_contact(self, jid, account, selected=False, focus=False)
Draw the correct state image, name BUT not avatar
source code
 
_is_pep_shown_in_roster(self, pep_type) source code
 
draw_all_pep_types(self, jid, account) source code
 
draw_pep(self, jid, account, pep_type) source code
 
draw_avatar(self, jid, account) source code
 
draw_completely(self, jid, account) source code
 
adjust_and_draw_contact_context(self, jid, account)
Draw contact, account and groups of given jid Show contact if it has pending events
source code
 
_idle_draw_jids_of_account(self, jids, account)
Draw given contacts and their avatars in a lazy fashion
source code
 
_before_fill(self) source code
 
_after_fill(self) source code
 
setup_and_draw_roster(self)
Create new empty model and draw roster
source code
 
select_contact(self, jid, account)
Select contact in roster.
source code
 
_adjust_account_expand_collapse_state(self, account)
Expand/collapse account row based on self.collapsed_rows
source code
 
_adjust_group_expand_collapse_state(self, group, account)
Expand/collapse group row based on self.collapsed_rows
source code
 
_search_roster_func(self, model, column, key, titer) source code
 
refilter_shown_roster_items(self) source code
 
contact_has_pending_roster_events(self, contact, account)
Return True if the contact or one if it resources has pending events
source code
 
contact_is_visible(self, contact, account) source code
 
_visible_func(self, model, titer)
Determine whether iter should be visible in the treeview
source code
 
_compareIters(self, model, iter1, iter2, data=None)
Compare two iters to sort them
source code
 
fire_up_unread_messages_events(self, account)
Read from db the unread messages, and fire them up, and if we find very old unread messages, delete them from unread table
source code
 
fill_contacts_and_groups_dicts(self, array, account)
Fill gajim.contacts and gajim.groups
source code
 
connected_rooms(self, account) source code
 
on_event_removed(self, event_list)
Remove contacts on last events removed
source code
 
open_event(self, account, jid, event)
If an event was handled, return True, else return False
source code
 
show_roster_vbox(self, active) source code
 
show_tooltip(self, contact) source code
 
authorize(self, widget, jid, account)
Authorize a contact (by re-sending auth menuitem)
source code
 
req_sub(self, widget, jid, txt, account, groups=None, nickname=None, auto_auth=False)
Request subscription to a contact
source code
 
revoke_auth(self, widget, jid, account)
Revoke a contact's authorization
source code
 
set_state(self, account, state) source code
 
set_connecting_state(self, account) source code
 
send_status(self, account, status, txt, auto=False, to=None) source code
 
send_pep(self, account, pep_dict) source code
 
delete_pep(self, jid, account) source code
 
send_status_continue(self, account, status, txt, auto, to) source code
 
chg_contact_status(self, contact, show, status, account)
When a contact changes his or her status
source code
 
on_status_changed(self, account, show)
The core tells us that our status has changed
source code
 
get_status_message(self, show, on_response, show_pep=True, always_ask=False)
Get the status message by:
source code
 
change_status(self, widget, account, status) source code
 
update_status_combobox(self) source code
 
get_show(self, lcontact) source code
 
on_message_window_delete(self, win_mgr, msg_win) source code
 
close_all_from_dict(self, dic)
Close all the windows in the given dictionary
source code
 
close_all(self, account, force=False)
Close all the windows from an account.
source code
 
on_roster_window_delete_event(self, widget, event)
Main window X button was clicked
source code
 
prepare_quit(self) source code
 
quit_gtkgui_interface(self)
When we quit the gtk interface - exit gtk
source code
 
on_quit_request(self, widget=None)
User wants to quit.
source code
 
on_actions_menuitem_activate(self, widget) source code
 
on_edit_menuitem_activate(self, widget)
Need to call make_menu to build profile, avatar item
source code
 
on_bookmark_menuitem_activate(self, widget, account, bookmark) source code
 
on_send_server_message_menuitem_activate(self, widget, account) source code
 
on_xml_console_menuitem_activate(self, widget, account) source code
 
on_privacy_lists_menuitem_activate(self, widget, account) source code
 
on_set_motd_menuitem_activate(self, widget, account) source code
 
on_update_motd_menuitem_activate(self, widget, account) source code
 
on_delete_motd_menuitem_activate(self, widget, account) source code
 
on_history_manager_menuitem_activate(self, widget) source code
 
on_info(self, widget, contact, account)
Call vcard_information_window class to display contact's information
source code
 
on_info_zeroconf(self, widget, contact, account) source code
 
on_roster_treeview_leave_notify_event(self, widget, event) source code
 
on_roster_treeview_motion_notify_event(self, widget, event) source code
 
on_agent_logging(self, widget, jid, state, account)
When an agent is requested to log in or off
source code
 
on_edit_agent(self, widget, contact, account)
When we want to modify the agent registration
source code
 
on_remove_agent(self, widget, list_)
When an agent is requested to be removed.
source code
 
on_block(self, widget, list_, group=None)
When clicked on the 'block' button in context menu.
source code
 
on_unblock(self, widget, list_, group=None)
When clicked on the 'unblock' button in context menu.
source code
 
on_rename(self, widget, row_type, jid, account) source code
 
on_remove_group_item_activated(self, widget, group, account) source code
 
on_assign_pgp_key(self, widget, contact, account) source code
 
on_set_custom_avatar_activate(self, widget, contact, account) source code
 
on_edit_groups(self, widget, list_) source code
 
on_history(self, widget, contact, account)
When history menuitem is activated: call log window
source code
 
on_disconnect(self, widget, jid, account)
When disconnect menuitem is activated: disconect from room
source code
 
on_reconnect(self, widget, jid, account)
When disconnect menuitem is activated: disconect from room
source code
 
on_send_single_message_menuitem_activate(self, widget, account, contact=None) source code
 
on_send_file_menuitem_activate(self, widget, contact, account, resource=None) source code
 
on_add_special_notification_menuitem_activate(self, widget, jid) source code
 
on_invite_to_new_room(self, widget, list_, resource=None)
Resource parameter MUST NOT be used if more than one contact in list
source code
 
on_invite_to_room(self, widget, list_, room_jid, room_account, resource=None)
Resource parameter MUST NOT be used if more than one contact in list
source code
 
on_all_groupchat_maximized(self, widget, group_list) source code
 
on_groupchat_maximized(self, widget, jid, account)
When a groupchat is maximized
source code
 
on_edit_account(self, widget, account) source code
 
on_zeroconf_properties(self, widget, account) source code
 
on_open_gmail_inbox(self, widget, account) source code
 
on_change_status_message_activate(self, widget, account) source code
 
on_add_to_roster(self, widget, contact, account) source code
 
on_roster_treeview_scroll_event(self, widget, event) source code
 
on_roster_treeview_key_press_event(self, widget, event)
When a key is pressed in the treeviews
source code
 
on_roster_treeview_button_release_event(self, widget, event) source code
 
on_roster_treeview_button_press_event(self, widget, event) source code
 
on_req_usub(self, widget, list_)
Remove a contact.
source code
 
on_send_custom_status(self, widget, contact_list, show, group=None)
Send custom status
source code
 
on_status_combobox_changed(self, widget)
When we change our status via the combobox
source code
 
on_preferences_menuitem_activate(self, widget) source code
 
on_plugins_menuitem_activate(self, widget) source code
 
on_publish_tune_toggled(self, widget, account) source code
 
on_publish_location_toggled(self, widget, account) source code
 
on_pep_services_menuitem_activate(self, widget, account) source code
 
on_add_new_contact(self, widget, account) source code
 
on_join_gc_activate(self, widget, account)
When the join gc menuitem is clicked, show the join gc window
source code
 
on_new_chat_menuitem_activate(self, widget, account) source code
 
on_contents_menuitem_activate(self, widget) source code
 
on_faq_menuitem_activate(self, widget) source code
 
on_features_menuitem_activate(self, widget) source code
 
on_about_menuitem_activate(self, widget) source code
 
on_accounts_menuitem_activate(self, widget) source code
 
on_file_transfers_menuitem_activate(self, widget) source code
 
on_history_menuitem_activate(self, widget) source code
 
on_show_transports_menuitem_activate(self, widget) source code
 
on_manage_bookmarks_menuitem_activate(self, widget) source code
 
on_profile_avatar_menuitem_activate(self, widget, account) source code
 
on_execute_command(self, widget, contact, account, resource=None)
Execute command.
source code
 
on_roster_window_focus_in_event(self, widget, event) source code
 
on_roster_window_focus_out_event(self, widget, event) source code
 
on_roster_window_key_press_event(self, widget, event) source code
 
on_roster_window_popup_menu(self, widget) source code
 
on_row_activated(self, widget, path)
When an iter is activated (double-click or single click if gnome is set this way)
source code
 
on_roster_treeview_row_activated(self, widget, path, col=0)
When an iter is double clicked: open the first event window
source code
 
on_roster_treeview_row_expanded(self, widget, titer, path)
When a row is expanded change the icon of the arrow
source code
 
on_roster_treeview_row_collapsed(self, widget, titer, path)
When a row is collapsed change the icon of the arrow
source code
 
on_modelfilter_row_has_child_toggled(self, model, path, titer)
Called when a row has gotten the first or lost its last child row
source code
 
on_service_disco_menuitem_activate(self, widget, account) source code
 
on_show_offline_contacts_menuitem_activate(self, widget)
When show offline option is changed: redraw the treeview
source code
 
on_show_only_active_contacts_menuitem_activate(self, widget)
When show only active contact option is changed: redraw the treeview
source code
 
on_view_menu_activate(self, widget) source code
 
on_show_roster_menuitem_toggled(self, widget) source code
 
drag_data_get_data(self, treeview, context, selection, target_id, etime) source code
 
drag_begin(self, treeview, context) source code
 
drag_end(self, treeview, context) source code
 
on_drop_rosterx(self, widget, account_source, c_source, account_dest, c_dest, was_big_brother, context, etime) source code
 
on_drop_in_contact(self, widget, account_source, c_source, account_dest, c_dest, was_big_brother, context, etime) source code
 
on_drop_in_group(self, widget, account, c_source, grp_dest, is_big_brother, context, etime, grp_source=None) source code
 
drag_drop(self, treeview, context, x, y, timestamp) source code
 
drag_data_received_data(self, treeview, context, x, y, selection, info, etime) source code
 
get_appropriate_state_images(self, jid, size='16', icon_name='online')
Check jid and return the appropriate state images dict for the demanded size.
source code
 
make_transport_state_images(self, transport)
Initialize opened and closed 'transport' iconset dict
source code
 
update_jabber_state_images(self) source code
 
set_account_status_icon(self, account) source code
 
show_title(self) source code
 
_change_style(self, model, path, titer, option) source code
 
change_roster_style(self, option) source code
 
repaint_themed_widgets(self)
Notify windows that contain themed widgets to repaint them
source code
 
update_avatar_in_gui(self, jid, account) source code
 
on_roster_treeview_style_set(self, treeview, style)
When style (theme) changes, redraw all contacts
source code
 
set_renderer_color(self, renderer, style, set_background=True)
Set style for treeview cell, using PRELIGHT system color
source code
 
_iconCellDataFunc(self, column, renderer, model, titer, data=None)
When a row is added, set properties for icon renderer
source code
 
_nameCellDataFunc(self, column, renderer, model, titer, data=None)
When a row is added, set properties for name renderer
source code
 
_fill_pep_pixbuf_renderer(self, column, renderer, model, titer, data=None)
When a row is added, draw the respective pep icon
source code
 
_fill_avatar_pixbuf_renderer(self, column, renderer, model, titer, data=None)
When a row is added, set properties for avatar renderer
source code
 
_fill_padlock_pixbuf_renderer(self, column, renderer, model, titer, data=None)
When a row is added, set properties for padlock renderer
source code
 
_set_account_row_background_color(self, renderer) source code
 
_set_contact_row_background_color(self, renderer, jid, account) source code
 
_set_group_row_background_color(self, renderer) source code
 
make_menu(self, force=False)
Create the main window's menus
source code
 
build_account_menu(self, account) source code
 
make_account_menu(self, event, titer)
Make account's popup menu
source code
 
make_group_menu(self, event, titer)
Make group's popup menu
source code
 
make_contact_menu(self, event, titer)
Make contact's popup menu
source code
 
make_multiple_contact_menu(self, event, iters)
Make group's popup menu
source code
 
make_transport_menu(self, event, titer)
Make transport's popup menu
source code
 
make_groupchat_menu(self, event, titer) source code
 
get_and_connect_advanced_menuitem_menu(self, account)
Add FOR ACCOUNT options
source code
 
add_history_manager_menuitem(self, menu)
Add a seperator and History Manager menuitem BELOW for account menuitems
source code
 
add_bookmarks_list(self, gc_sub_menu, account)
Show join new group chat item and bookmarks list for an account
source code
 
set_actions_menu_needs_rebuild(self) source code
 
show_appropriate_context_menu(self, event, iters) source code
 
show_treeview_menu(self, event) source code
 
on_ctrl_j(self, accel_group, acceleratable, keyval, modifier)
Bring up the conference join dialog, when CTRL+J accelerator is being activated
source code
 
__init__(self) source code
Method Details [hide private]

_get_account_iter(self, name, model=None)

source code 

Return the gtk.TreeIter of the given account or None if not found

Keyword arguments: name -- the account name model -- the data model (default TreeFilterModel)

_get_group_iter(self, name, account, model=None)

source code 

Return the gtk.TreeIter of the given group or None if not found

Keyword arguments: name -- the group name account -- the account name model -- the data model (default TreeFilterModel)

_get_self_contact_iter(self, account, model=None)

source code 

Return the gtk.TreeIter of SelfContact or None if not found

Keyword arguments: account -- the account of SelfContact model -- the data model (default TreeFilterModel)

_get_contact_iter(self, jid, account, contact=None, model=None)

source code 

Return a list of gtk.TreeIter of the given contact

Keyword arguments: jid -- the jid without resource account -- the account contact -- the contact (default None) model -- the data model (default TreeFilterModel)

_iter_is_separator(self, model, titer)

source code 

Return True if the given iter is a separator

Keyword arguments: model -- the data model iter -- the gtk.TreeIter to test

_iter_contact_rows(self, model=None)

source code 

Iterate over all contact rows in given model

Keyword argument model -- the data model (default TreeFilterModel)

add_account(self, account)

source code 
Add account to roster and draw it. Do nothing if it is already in

add_account_contacts(self, account)

source code 
Add all contacts and groups of the given account to roster, draw them and account

_add_entity(self, contact, account, groups=None, big_brother_contact=None, big_brother_account=None)

source code 

Add the given contact to roster data model

Contact is added regardless if he is already in roster or not. Return
list of newly added iters.

Keyword arguments:
contact -- the contact to add
account -- the contacts account
groups -- list of groups to add the contact to.
          (default groups in contact.get_shown_groups()).
        Parameter ignored when big_brother_contact is specified.
big_brother_contact -- if specified contact is added as child
          big_brother_contact. (default None)

_remove_entity(self, contact, account, groups=None)

source code 

Remove the given contact from roster data model

Empty groups after contact removal are removed too. Return False if contact still has children and deletion was not performed. Return True on success.

Keyword arguments: contact -- the contact to add account -- the contacts account groups -- list of groups to remove the contact from.

_add_metacontact_family(self, family, account)

source code 

Add the give Metacontact family to roster data model

Add Big Brother to his groups and all others under him. Return list of all added (contact, account) tuples with Big Brother as first element.

Keyword arguments: family -- the family, see Contacts.get_metacontacts_family()

_remove_metacontact_family(self, family, account)

source code 

Remove the given Metacontact family from roster data model

See Contacts.get_metacontacts_family() and RosterWindow._remove_entity()

_recalibrate_metacontact_family(self, family, account)

source code 
Regroup metacontact family if necessary

_get_nearby_family_and_big_brother(self, family, account)

source code 

_add_self_contact(self, account)

source code 

Add account's SelfContact to roster and draw it and the account

Return the SelfContact contact instance

redraw_metacontacts(self, account)

source code 

add_contact(self, jid, account)

source code 

Add contact to roster and draw him

Add contact to all its group and redraw the groups, the contact and the account. If it's a Metacontact, add and draw the whole family. Do nothing if the contact is already in roster.

Return the added contact instance. If it is a Metacontact return Big Brother.

Keyword arguments: jid -- the contact's jid or SelfJid to add SelfContact account -- the corresponding account.

remove_contact(self, jid, account, force=False, backend=False)

source code 

Remove contact from roster

Remove contact from all its group. Remove empty groups or redraw otherwise. Draw the account. If it's a Metacontact, remove the whole family. Do nothing if the contact is not in roster.

Keyword arguments: jid -- the contact's jid or SelfJid to remove SelfContact account -- the corresponding account. force -- remove contact even it has pending evens (Default False) backend -- also remove contact instance (Default False)

rename_self_contact(self, old_jid, new_jid, account)

source code 

Rename the self_contact jid

Keyword arguments: old_jid -- our old jid new_jid -- our new jid account -- the corresponding account.

add_groupchat(self, jid, account, status='')

source code 
Add groupchat to roster and draw it. Return the added contact instance

remove_groupchat(self, jid, account)

source code 
Remove groupchat from roster and redraw account and group

add_transport(self, jid, account)

source code 
Add transport to roster and draw it. Return the added contact instance

remove_transport(self, jid, account)

source code 
Remove transport from roster and redraw account and group

rename_group(self, old_name, new_name, account)

source code 
Rename a roster group

add_contact_to_groups(self, jid, account, groups, update=True)

source code 

Add contact to given groups and redraw them

Contact on server is updated too. When the contact has a family, the action will be performed for all members.

Keyword Arguments: jid -- the jid account -- the corresponding account groups -- list of Groups to add the contact to. update -- update contact on the server

remove_contact_from_groups(self, jid, account, groups, update=True)

source code 

Remove contact from given groups and redraw them

Contact on server is updated too. When the contact has a family, the action will be performed for all members.

Keyword Arguments: jid -- the jid account -- the corresponding account groups -- list of Groups to remove the contact from update -- update contact on the server

remove_newly_added(self, jid, account)

source code 

remove_to_be_removed(self, jid, account)

source code 

add_to_not_in_the_roster(self, account, jid, nick='', resource='')

source code 

draw_account(self, account)

source code 

draw_group(self, group, account)

source code 

draw_parent_contact(self, jid, account)

source code 

draw_contact(self, jid, account, selected=False, focus=False)

source code 
Draw the correct state image, name BUT not avatar

_is_pep_shown_in_roster(self, pep_type)

source code 

draw_all_pep_types(self, jid, account)

source code 

draw_pep(self, jid, account, pep_type)

source code 

draw_avatar(self, jid, account)

source code 

draw_completely(self, jid, account)

source code 

adjust_and_draw_contact_context(self, jid, account)

source code 
Draw contact, account and groups of given jid Show contact if it has pending events

_idle_draw_jids_of_account(self, jids, account)

source code 

Draw given contacts and their avatars in a lazy fashion

Keyword arguments: jids -- a list of jids to draw account -- the corresponding account

_before_fill(self)

source code 

_after_fill(self)

source code 

setup_and_draw_roster(self)

source code 
Create new empty model and draw roster

select_contact(self, jid, account)

source code 
Select contact in roster. If contact is hidden but has events, show him

_adjust_account_expand_collapse_state(self, account)

source code 
Expand/collapse account row based on self.collapsed_rows

_adjust_group_expand_collapse_state(self, group, account)

source code 
Expand/collapse group row based on self.collapsed_rows

_search_roster_func(self, model, column, key, titer)

source code 

refilter_shown_roster_items(self)

source code 

contact_has_pending_roster_events(self, contact, account)

source code 
Return True if the contact or one if it resources has pending events

contact_is_visible(self, contact, account)

source code 

_visible_func(self, model, titer)

source code 
Determine whether iter should be visible in the treeview

_compareIters(self, model, iter1, iter2, data=None)

source code 
Compare two iters to sort them

fire_up_unread_messages_events(self, account)

source code 
Read from db the unread messages, and fire them up, and if we find very old unread messages, delete them from unread table

fill_contacts_and_groups_dicts(self, array, account)

source code 
Fill gajim.contacts and gajim.groups

connected_rooms(self, account)

source code 

on_event_removed(self, event_list)

source code 

Remove contacts on last events removed

Only performed if removal was requested before but the contact still had pending events

open_event(self, account, jid, event)

source code 
If an event was handled, return True, else return False

show_roster_vbox(self, active)

source code 

show_tooltip(self, contact)

source code 

authorize(self, widget, jid, account)

source code 
Authorize a contact (by re-sending auth menuitem)

req_sub(self, widget, jid, txt, account, groups=None, nickname=None, auto_auth=False)

source code 
Request subscription to a contact

revoke_auth(self, widget, jid, account)

source code 
Revoke a contact's authorization

set_state(self, account, state)

source code 

set_connecting_state(self, account)

source code 

send_status(self, account, status, txt, auto=False, to=None)

source code 

send_pep(self, account, pep_dict)

source code 

delete_pep(self, jid, account)

source code 

send_status_continue(self, account, status, txt, auto, to)

source code 

chg_contact_status(self, contact, show, status, account)

source code 
When a contact changes his or her status

on_status_changed(self, account, show)

source code 
The core tells us that our status has changed

get_status_message(self, show, on_response, show_pep=True, always_ask=False)

source code 

Get the status message by:

1/ looking in default status message
2/ asking to user if needed depending on ask_on(ff)line_status and
        always_ask
show_pep can be False to hide pep things from status message or True

change_status(self, widget, account, status)

source code 

update_status_combobox(self)

source code 

get_show(self, lcontact)

source code 

on_message_window_delete(self, win_mgr, msg_win)

source code 

close_all_from_dict(self, dic)

source code 
Close all the windows in the given dictionary

close_all(self, account, force=False)

source code 
Close all the windows from an account. If force is True, do not ask confirmation before closing chat/gc windows

on_roster_window_delete_event(self, widget, event)

source code 
Main window X button was clicked

prepare_quit(self)

source code 

quit_gtkgui_interface(self)

source code 
When we quit the gtk interface - exit gtk

on_quit_request(self, widget=None)

source code 
User wants to quit. Check if he should be warned about messages pending. Terminate all sessions and send offline to all connected account. We do NOT really quit gajim here

on_actions_menuitem_activate(self, widget)

source code 

on_edit_menuitem_activate(self, widget)

source code 
Need to call make_menu to build profile, avatar item

on_bookmark_menuitem_activate(self, widget, account, bookmark)

source code 

on_send_server_message_menuitem_activate(self, widget, account)

source code 

on_xml_console_menuitem_activate(self, widget, account)

source code 

on_privacy_lists_menuitem_activate(self, widget, account)

source code 

on_set_motd_menuitem_activate(self, widget, account)

source code 

on_update_motd_menuitem_activate(self, widget, account)

source code 

on_delete_motd_menuitem_activate(self, widget, account)

source code 

on_history_manager_menuitem_activate(self, widget)

source code 

on_info(self, widget, contact, account)

source code 
Call vcard_information_window class to display contact's information

on_info_zeroconf(self, widget, contact, account)

source code 

on_roster_treeview_leave_notify_event(self, widget, event)

source code 

on_roster_treeview_motion_notify_event(self, widget, event)

source code 

on_agent_logging(self, widget, jid, state, account)

source code 
When an agent is requested to log in or off

on_edit_agent(self, widget, contact, account)

source code 
When we want to modify the agent registration

on_remove_agent(self, widget, list_)

source code 

When an agent is requested to be removed. list_ is a list of (contact,
account) tuple

on_block(self, widget, list_, group=None)

source code 

When clicked on the 'block' button in context menu. list_ is a list of
(contact, account)

on_unblock(self, widget, list_, group=None)

source code 
When clicked on the 'unblock' button in context menu.

on_rename(self, widget, row_type, jid, account)

source code 

on_remove_group_item_activated(self, widget, group, account)

source code 

on_assign_pgp_key(self, widget, contact, account)

source code 

on_set_custom_avatar_activate(self, widget, contact, account)

source code 

on_edit_groups(self, widget, list_)

source code 

on_history(self, widget, contact, account)

source code 
When history menuitem is activated: call log window

on_disconnect(self, widget, jid, account)

source code 
When disconnect menuitem is activated: disconect from room

on_reconnect(self, widget, jid, account)

source code 
When disconnect menuitem is activated: disconect from room

on_send_single_message_menuitem_activate(self, widget, account, contact=None)

source code 

on_send_file_menuitem_activate(self, widget, contact, account, resource=None)

source code 

on_add_special_notification_menuitem_activate(self, widget, jid)

source code 

on_invite_to_new_room(self, widget, list_, resource=None)

source code 
Resource parameter MUST NOT be used if more than one contact in list

on_invite_to_room(self, widget, list_, room_jid, room_account, resource=None)

source code 
Resource parameter MUST NOT be used if more than one contact in list

on_all_groupchat_maximized(self, widget, group_list)

source code 

on_groupchat_maximized(self, widget, jid, account)

source code 
When a groupchat is maximized

on_edit_account(self, widget, account)

source code 

on_zeroconf_properties(self, widget, account)

source code 

on_open_gmail_inbox(self, widget, account)

source code 

on_change_status_message_activate(self, widget, account)

source code 

on_add_to_roster(self, widget, contact, account)

source code 

on_roster_treeview_scroll_event(self, widget, event)

source code 

on_roster_treeview_key_press_event(self, widget, event)

source code 
When a key is pressed in the treeviews

on_roster_treeview_button_release_event(self, widget, event)

source code 

on_roster_treeview_button_press_event(self, widget, event)

source code 

on_req_usub(self, widget, list_)

source code 

Remove a contact. list_ is a list of (contact, account) tuples

on_send_custom_status(self, widget, contact_list, show, group=None)

source code 
Send custom status

on_status_combobox_changed(self, widget)

source code 
When we change our status via the combobox

on_preferences_menuitem_activate(self, widget)

source code 

on_plugins_menuitem_activate(self, widget)

source code 

on_publish_tune_toggled(self, widget, account)

source code 

on_publish_location_toggled(self, widget, account)

source code 

on_pep_services_menuitem_activate(self, widget, account)

source code 

on_add_new_contact(self, widget, account)

source code 

on_join_gc_activate(self, widget, account)

source code 
When the join gc menuitem is clicked, show the join gc window

on_new_chat_menuitem_activate(self, widget, account)

source code 

on_contents_menuitem_activate(self, widget)

source code 

on_faq_menuitem_activate(self, widget)

source code 

on_features_menuitem_activate(self, widget)

source code 

on_about_menuitem_activate(self, widget)

source code 

on_accounts_menuitem_activate(self, widget)

source code 

on_file_transfers_menuitem_activate(self, widget)

source code 

on_history_menuitem_activate(self, widget)

source code 

on_show_transports_menuitem_activate(self, widget)

source code 

on_manage_bookmarks_menuitem_activate(self, widget)

source code 

on_profile_avatar_menuitem_activate(self, widget, account)

source code 

on_execute_command(self, widget, contact, account, resource=None)

source code 
Execute command. Full JID needed; if it is other contact, resource is necessary. Widget is unnecessary, only to be able to make this a callback

on_roster_window_focus_in_event(self, widget, event)

source code 

on_roster_window_focus_out_event(self, widget, event)

source code 

on_roster_window_key_press_event(self, widget, event)

source code 

on_roster_window_popup_menu(self, widget)

source code 

on_row_activated(self, widget, path)

source code 
When an iter is activated (double-click or single click if gnome is set this way)

on_roster_treeview_row_activated(self, widget, path, col=0)

source code 
When an iter is double clicked: open the first event window

on_roster_treeview_row_expanded(self, widget, titer, path)

source code 
When a row is expanded change the icon of the arrow

on_roster_treeview_row_collapsed(self, widget, titer, path)

source code 
When a row is collapsed change the icon of the arrow

on_modelfilter_row_has_child_toggled(self, model, path, titer)

source code 

Called when a row has gotten the first or lost its last child row

Expand Parent if necessary.

on_service_disco_menuitem_activate(self, widget, account)

source code 

on_show_offline_contacts_menuitem_activate(self, widget)

source code 
When show offline option is changed: redraw the treeview

on_show_only_active_contacts_menuitem_activate(self, widget)

source code 
When show only active contact option is changed: redraw the treeview

on_view_menu_activate(self, widget)

source code 

on_show_roster_menuitem_toggled(self, widget)

source code 

drag_data_get_data(self, treeview, context, selection, target_id, etime)

source code 

drag_begin(self, treeview, context)

source code 

drag_end(self, treeview, context)

source code 

on_drop_rosterx(self, widget, account_source, c_source, account_dest, c_dest, was_big_brother, context, etime)

source code 

on_drop_in_contact(self, widget, account_source, c_source, account_dest, c_dest, was_big_brother, context, etime)

source code 

on_drop_in_group(self, widget, account, c_source, grp_dest, is_big_brother, context, etime, grp_source=None)

source code 

drag_drop(self, treeview, context, x, y, timestamp)

source code 

drag_data_received_data(self, treeview, context, x, y, selection, info, etime)

source code 

get_appropriate_state_images(self, jid, size='16', icon_name='online')

source code 
Check jid and return the appropriate state images dict for the demanded size. icon_name is taken into account when jid is from transport: transport iconset doesn't contain all icons, so we fall back to jabber one

make_transport_state_images(self, transport)

source code 
Initialize opened and closed 'transport' iconset dict

update_jabber_state_images(self)

source code 

set_account_status_icon(self, account)

source code 

show_title(self)

source code 

_change_style(self, model, path, titer, option)

source code 

change_roster_style(self, option)

source code 

repaint_themed_widgets(self)

source code 
Notify windows that contain themed widgets to repaint them

update_avatar_in_gui(self, jid, account)

source code 

on_roster_treeview_style_set(self, treeview, style)

source code 
When style (theme) changes, redraw all contacts

set_renderer_color(self, renderer, style, set_background=True)

source code 
Set style for treeview cell, using PRELIGHT system color

_iconCellDataFunc(self, column, renderer, model, titer, data=None)

source code 
When a row is added, set properties for icon renderer

_nameCellDataFunc(self, column, renderer, model, titer, data=None)

source code 
When a row is added, set properties for name renderer

_fill_pep_pixbuf_renderer(self, column, renderer, model, titer, data=None)

source code 
When a row is added, draw the respective pep icon

_fill_avatar_pixbuf_renderer(self, column, renderer, model, titer, data=None)

source code 
When a row is added, set properties for avatar renderer

_fill_padlock_pixbuf_renderer(self, column, renderer, model, titer, data=None)

source code 
When a row is added, set properties for padlock renderer

_set_account_row_background_color(self, renderer)

source code 

_set_contact_row_background_color(self, renderer, jid, account)

source code 

_set_group_row_background_color(self, renderer)

source code 

make_menu(self, force=False)

source code 
Create the main window's menus

build_account_menu(self, account)

source code 

make_account_menu(self, event, titer)

source code 
Make account's popup menu

make_group_menu(self, event, titer)

source code 
Make group's popup menu

make_contact_menu(self, event, titer)

source code 
Make contact's popup menu

make_multiple_contact_menu(self, event, iters)

source code 
Make group's popup menu

make_transport_menu(self, event, titer)

source code 
Make transport's popup menu

make_groupchat_menu(self, event, titer)

source code 

get_and_connect_advanced_menuitem_menu(self, account)

source code 
Add FOR ACCOUNT options

add_history_manager_menuitem(self, menu)

source code 
Add a seperator and History Manager menuitem BELOW for account menuitems

add_bookmarks_list(self, gc_sub_menu, account)

source code 
Show join new group chat item and bookmarks list for an account

set_actions_menu_needs_rebuild(self)

source code 

show_appropriate_context_menu(self, event, iters)

source code 

show_treeview_menu(self, event)

source code 

on_ctrl_j(self, accel_group, acceleratable, keyval, modifier)

source code 
Bring up the conference join dialog, when CTRL+J accelerator is being activated

__init__(self)
(Constructor)

source code