online offline --> sign in sign out for popup notifications options

This commit is contained in:
Nikos Kouremenos 2005-05-21 13:46:23 +00:00
parent 5e3ba6e98a
commit d7f06a3fcd
3 changed files with 25 additions and 25 deletions

View File

@ -67,10 +67,10 @@ class Preferences_window:
('notify_on_new_message_radiobutton')
self.popup_new_message_radiobutton = self.xml.get_widget \
('popup_new_message_radiobutton')
self.notify_on_online_checkbutton = self.xml.get_widget \
('notify_on_online_checkbutton')
self.notify_on_offline_checkbutton = self.xml.get_widget \
('notify_on_offline_checkbutton')
self.notify_on_signin_checkbutton = self.xml.get_widget \
('notify_on_signin_checkbutton')
self.notify_on_signout_checkbutton = self.xml.get_widget \
('notify_on_signout_checkbutton')
self.auto_popup_away_checkbutton = self.xml.get_widget \
('auto_popup_away_checkbutton')
self.auto_away_checkbutton = self.xml.get_widget('auto_away_checkbutton')
@ -219,12 +219,12 @@ class Preferences_window:
self.xml.get_widget('only_in_roster_radiobutton').set_active(True)
#notify on online statuses
st = gajim.config.get('notify_on_online')
self.notify_on_online_checkbutton.set_active(st)
st = gajim.config.get('notify_on_signin')
self.notify_on_signin_checkbutton.set_active(st)
#notify on offline statuses
st = gajim.config.get('notify_on_offline')
self.notify_on_offline_checkbutton.set_active(st)
st = gajim.config.get('notify_on_signout')
self.notify_on_signout_checkbutton.set_active(st)
#autopopupaway
st = gajim.config.get('autopopupaway')
@ -678,11 +678,11 @@ class Preferences_window:
if widget.get_active():
self.auto_popup_away_checkbutton.set_sensitive(False)
def on_notify_on_online_checkbutton_toggled(self, widget):
self.on_checkbutton_toggled(widget, 'notify_on_online')
def on_notify_on_signin_checkbutton_toggled(self, widget):
self.on_checkbutton_toggled(widget, 'notify_on_signin')
def on_notify_on_offline_checkbutton_toggled(self, widget):
self.on_checkbutton_toggled(widget, 'notify_on_offline')
def on_notify_on_signout_checkbutton_toggled(self, widget):
self.on_checkbutton_toggled(widget, 'notify_on_signout')
def on_auto_popup_away_checkbutton_toggled(self, widget):
self.on_checkbutton_toggled(widget, 'autopopupaway')

View File

@ -283,7 +283,7 @@ class Interface:
self.play_sound('contact_connected')
if not self.windows[account]['chats'].has_key(jid) and \
not self.queues[account].has_key(jid) and \
gajim.config.get('notify_on_online') and \
gajim.config.get('notify_on_signin') and \
self.allow_notifications[account]:
show_notification = False
# check OUR status and if we allow notifications for that status
@ -302,7 +302,7 @@ class Interface:
self.play_sound('contact_disconnected')
if not self.windows[account]['chats'].has_key(jid) and \
not self.queues[account].has_key(jid) and \
gajim.config.get('notify_on_offline'):
gajim.config.get('notify_on_signout'):
show_notification = False
# check OUR status and if we allow notifications for that status
if gajim.config.get('autopopupaway'): # always notify

View File

@ -826,7 +826,7 @@
<child>
<widget class="GtkEntry" id="resource_entry">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Resource is sent to the jabber server in order to 'seperate' the same JID in two or more parts depending on the number of the clients connected in the same server with the same account. So you might be connected in the same account with resource 'Home' and 'Work' at the same time. The resource which has the highest priority will get the messages. (see below)</property>
<property name="tooltip" translatable="yes">Resource is sent to the Jabber server in order to 'seperate' the same JID in two or more parts depending on the number of the clients connected in the same server with the same account. So you might be connected in the same account with resource 'Home' and 'Work' at the same time. The resource which has the highest priority will get the events. (see below)</property>
<property name="can_focus">True</property>
<property name="editable">True</property>
<property name="visibility">True</property>
@ -4419,7 +4419,7 @@
<child>
<widget class="GtkLabel" id="label241">
<property name="visible">True</property>
<property name="label" translatable="yes">Notify me about contacts going: </property>
<property name="label" translatable="yes">Notify me about contacts that: </property>
<property name="use_underline">False</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
@ -4438,18 +4438,18 @@
</child>
<child>
<widget class="GtkCheckButton" id="notify_on_online_checkbutton">
<widget class="GtkCheckButton" id="notify_on_signin_checkbutton">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Gajim will notify you via a popup window in the bottom right of the screen about contacts that just went online</property>
<property name="tooltip" translatable="yes">Gajim will notify you via a popup window in the bottom right of the screen about contacts that just signed in</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">_Online</property>
<property name="label" translatable="yes">Sign _in</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="focus_on_click">True</property>
<property name="active">False</property>
<property name="inconsistent">False</property>
<property name="draw_indicator">True</property>
<signal name="toggled" handler="on_notify_on_online_checkbutton_toggled" last_modification_time="Sat, 16 Apr 2005 13:44:52 GMT"/>
<signal name="toggled" handler="on_notify_on_signin_checkbutton_toggled" last_modification_time="Sat, 21 May 2005 12:55:15 GMT"/>
</widget>
<packing>
<property name="padding">0</property>
@ -4459,18 +4459,18 @@
</child>
<child>
<widget class="GtkCheckButton" id="notify_on_offline_checkbutton">
<widget class="GtkCheckButton" id="notify_on_signout_checkbutton">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Gajim will notify you via a popup window in the bottom right of the screen about contacts that just went offline</property>
<property name="tooltip" translatable="yes">Gajim will notify you via a popup window in the bottom right of the screen about contacts that just signed out</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Of_fline</property>
<property name="label" translatable="yes">Sign _out</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="focus_on_click">True</property>
<property name="active">False</property>
<property name="inconsistent">False</property>
<property name="draw_indicator">True</property>
<signal name="toggled" handler="on_notify_on_offline_checkbutton_toggled" last_modification_time="Sat, 16 Apr 2005 13:44:48 GMT"/>
<signal name="toggled" handler="on_notify_on_signout_checkbutton_toggled" last_modification_time="Sat, 21 May 2005 12:55:45 GMT"/>
</widget>
<packing>
<property name="padding">0</property>
@ -4539,7 +4539,7 @@
<child>
<widget class="GtkCheckButton" id="ignore_events_from_unknown_contacts_checkbutton">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Check this option, only if someone you don't have in the roster spams/annoys you. Use with caution, cause it blocks all messags from every contact you don't have in the roster and might want to sent you a message</property>
<property name="tooltip" translatable="yes">Check this option, only if someone you don't have in the roster spams/annoys you. Use with caution, cause it blocks all messages from any contact that is not in the roster.</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">_Ignore events from contacts not in the roster</property>
<property name="use_underline">True</property>