Icons in option menu

This commit is contained in:
Yann Leboulanger 2004-05-11 20:30:59 +00:00
parent 3b25e64d8d
commit 3c597eeb3b
2 changed files with 12 additions and 7 deletions

View File

@ -2,7 +2,6 @@
<!DOCTYPE glade-interface SYSTEM "http://glade.gnome.org/glade-2.0.dtd">
<glade-interface>
<requires lib="gnome"/>
<widget class="GtkWindow" id="Gajim">
<property name="visible">True</property>
@ -258,7 +257,7 @@
<widget class="GtkMenu" id="menu_status">
<child>
<widget class="GtkMenuItem" id="online">
<widget class="GtkImageMenuItem" id="online">
<property name="visible">True</property>
<property name="label" translatable="yes">Online</property>
<property name="use_underline">True</property>
@ -266,7 +265,7 @@
</child>
<child>
<widget class="GtkMenuItem" id="away">
<widget class="GtkImageMenuItem" id="away">
<property name="visible">True</property>
<property name="label" translatable="yes">Away</property>
<property name="use_underline">True</property>
@ -274,7 +273,7 @@
</child>
<child>
<widget class="GtkMenuItem" id="xa">
<widget class="GtkImageMenuItem" id="xa">
<property name="visible">True</property>
<property name="label" translatable="yes">NA</property>
<property name="use_underline">True</property>
@ -282,7 +281,7 @@
</child>
<child>
<widget class="GtkMenuItem" id="dnd">
<widget class="GtkImageMenuItem" id="dnd">
<property name="visible">True</property>
<property name="label" translatable="yes">DND</property>
<property name="use_underline">True</property>
@ -304,7 +303,7 @@
</child>
<child>
<widget class="GtkMenuItem" id="offline">
<widget class="GtkImageMenuItem" id="offline">
<property name="visible">True</property>
<property name="label" translatable="yes">Offline</property>
<property name="use_underline">True</property>

View File

@ -602,7 +602,8 @@ class accountPreference_Window:
if infos.has_key('proxyhost'):
self.xml.get_widget("entry_proxyhost").set_text(infos['proxyhost'])
if infos.has_key('proxyport'):
self.xml.get_widget("entry_proxyport").set_text('%i'%\
# self.xml.get_widget("entry_proxyport").set_text('%i'%\
self.xml.get_widget("entry_proxyport").set_text(\
infos['proxyport'])
def on_save_clicked(self, widget):
@ -1874,6 +1875,11 @@ class roster_Window:
pix = fct(file)
self.pixbufs[state] = pix
break
for state in ('online', 'away', 'xa', 'dnd', 'offline'):
image = gtk.Image()
image.set_from_pixbuf(self.pixbufs[state])
image.show()
self.xml.get_widget(state).set_image(image)
def on_show_off(self, widget):
"""when show offline option is changed :