fixing #338 and the the already fixed widgets but in the same category in a glade way [eg. making them invisible from glade]

This commit is contained in:
Nikos Kouremenos 2005-05-28 22:42:08 +00:00
parent 4bd43efda1
commit 0c99f773ca
2 changed files with 5 additions and 6 deletions

View File

@ -94,7 +94,6 @@ class Preferences_window:
self.trayicon_checkbutton.set_active(st)
else:
if os.name == 'nt':
self.trayicon_checkbutton.hide()
self.trayicon_checkbutton.set_no_show_all(True)
else:
self.trayicon_checkbutton.set_sensitive(False)
@ -253,7 +252,8 @@ class Preferences_window:
#sounds
if os.name == 'nt': # if windows, player must not become visible on show_all
self.xml.get_widget('soundplayer_hbox').set_no_show_all(True)
soundplayer_hbox = self.xml.get_widget('soundplayer_hbox')
soundplayer_hbox.set_no_show_all(True)
if gajim.config.get('sounds_on'):
self.xml.get_widget('play_sounds_checkbutton').set_active(True)
else:
@ -337,7 +337,6 @@ class Preferences_window:
#open links with
if os.name == 'nt':
self.links_frame = self.xml.get_widget('links_frame')
self.links_frame.hide()
self.links_frame.set_no_show_all(True)
else:
self.links_open_with_combobox = self.xml.get_widget('links_open_with_combobox')

View File

@ -2968,7 +2968,7 @@
<child>
<widget class="GtkCheckButton" id="trayicon_checkbutton">
<property name="visible">True</property>
<property name="visible">False</property>
<property name="tooltip" translatable="yes">If checked, Gajim will also have a trayicon</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">_Icon in systray (aka. notification area)</property>
@ -4629,7 +4629,7 @@
<child>
<widget class="GtkHBox" id="soundplayer_hbox">
<property name="visible">True</property>
<property name="visible">False</property>
<property name="homogeneous">False</property>
<property name="spacing">5</property>
@ -5372,7 +5372,7 @@
<child>
<widget class="GtkFrame" id="links_frame">
<property name="visible">True</property>
<property name="visible">False</property>
<property name="label_xalign">0</property>
<property name="label_yalign">0.5</property>
<property name="shadow_type">GTK_SHADOW_ETCHED_IN</property>