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:
parent
4bd43efda1
commit
0c99f773ca
|
@ -94,7 +94,6 @@ class Preferences_window:
|
||||||
self.trayicon_checkbutton.set_active(st)
|
self.trayicon_checkbutton.set_active(st)
|
||||||
else:
|
else:
|
||||||
if os.name == 'nt':
|
if os.name == 'nt':
|
||||||
self.trayicon_checkbutton.hide()
|
|
||||||
self.trayicon_checkbutton.set_no_show_all(True)
|
self.trayicon_checkbutton.set_no_show_all(True)
|
||||||
else:
|
else:
|
||||||
self.trayicon_checkbutton.set_sensitive(False)
|
self.trayicon_checkbutton.set_sensitive(False)
|
||||||
|
@ -253,7 +252,8 @@ class Preferences_window:
|
||||||
|
|
||||||
#sounds
|
#sounds
|
||||||
if os.name == 'nt': # if windows, player must not become visible on show_all
|
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'):
|
if gajim.config.get('sounds_on'):
|
||||||
self.xml.get_widget('play_sounds_checkbutton').set_active(True)
|
self.xml.get_widget('play_sounds_checkbutton').set_active(True)
|
||||||
else:
|
else:
|
||||||
|
@ -337,7 +337,6 @@ class Preferences_window:
|
||||||
#open links with
|
#open links with
|
||||||
if os.name == 'nt':
|
if os.name == 'nt':
|
||||||
self.links_frame = self.xml.get_widget('links_frame')
|
self.links_frame = self.xml.get_widget('links_frame')
|
||||||
self.links_frame.hide()
|
|
||||||
self.links_frame.set_no_show_all(True)
|
self.links_frame.set_no_show_all(True)
|
||||||
else:
|
else:
|
||||||
self.links_open_with_combobox = self.xml.get_widget('links_open_with_combobox')
|
self.links_open_with_combobox = self.xml.get_widget('links_open_with_combobox')
|
||||||
|
|
|
@ -2968,7 +2968,7 @@
|
||||||
|
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkCheckButton" id="trayicon_checkbutton">
|
<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="tooltip" translatable="yes">If checked, Gajim will also have a trayicon</property>
|
||||||
<property name="can_focus">True</property>
|
<property name="can_focus">True</property>
|
||||||
<property name="label" translatable="yes">_Icon in systray (aka. notification area)</property>
|
<property name="label" translatable="yes">_Icon in systray (aka. notification area)</property>
|
||||||
|
@ -4629,7 +4629,7 @@
|
||||||
|
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkHBox" id="soundplayer_hbox">
|
<widget class="GtkHBox" id="soundplayer_hbox">
|
||||||
<property name="visible">True</property>
|
<property name="visible">False</property>
|
||||||
<property name="homogeneous">False</property>
|
<property name="homogeneous">False</property>
|
||||||
<property name="spacing">5</property>
|
<property name="spacing">5</property>
|
||||||
|
|
||||||
|
@ -5372,7 +5372,7 @@
|
||||||
|
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkFrame" id="links_frame">
|
<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_xalign">0</property>
|
||||||
<property name="label_yalign">0.5</property>
|
<property name="label_yalign">0.5</property>
|
||||||
<property name="shadow_type">GTK_SHADOW_ETCHED_IN</property>
|
<property name="shadow_type">GTK_SHADOW_ETCHED_IN</property>
|
||||||
|
|
Loading…
Reference in New Issue