share space in pref window in status tab between default status message expander and preset status message frame when expander is expander. see #2918
This commit is contained in:
parent
6484e67d36
commit
efad862700
|
@ -2024,7 +2024,7 @@ Disabled</property>
|
||||||
</child>
|
</child>
|
||||||
|
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkVBox" id="vbox43">
|
<widget class="GtkVBox" id="status_vbox">
|
||||||
<property name="border_width">12</property>
|
<property name="border_width">12</property>
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="homogeneous">False</property>
|
<property name="homogeneous">False</property>
|
||||||
|
@ -2383,18 +2383,19 @@ Disabled</property>
|
||||||
</child>
|
</child>
|
||||||
|
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkEventBox" id="eventbox6">
|
<widget class="GtkEventBox" id="default_status_eventbox">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="tooltip" translatable="yes">An example: If you have enabled status message for away, Gajim won't ask you anymore for a status message when you change your status to away; it will use the default one set here</property>
|
<property name="tooltip" translatable="yes">An example: If you have enabled status message for away, Gajim won't ask you anymore for a status message when you change your status to away; it will use the default one set here</property>
|
||||||
<property name="visible_window">True</property>
|
<property name="visible_window">True</property>
|
||||||
<property name="above_child">False</property>
|
<property name="above_child">False</property>
|
||||||
|
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkExpander" id="expander1">
|
<widget class="GtkExpander" id="default_status_expander">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">True</property>
|
<property name="can_focus">True</property>
|
||||||
<property name="expanded">False</property>
|
<property name="expanded">False</property>
|
||||||
<property name="spacing">0</property>
|
<property name="spacing">0</property>
|
||||||
|
<signal name="activate" handler="on_default_status_expander_activate" last_modification_time="Tue, 13 Feb 2007 20:20:14 GMT"/>
|
||||||
|
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkScrolledWindow" id="scrolledwindow24">
|
<widget class="GtkScrolledWindow" id="scrolledwindow24">
|
||||||
|
|
|
@ -901,6 +901,12 @@ class PreferencesWindow:
|
||||||
model[iter][3])
|
model[iter][3])
|
||||||
gajim.config.set_per('defaultstatusmsg', status, 'message', message)
|
gajim.config.set_per('defaultstatusmsg', status, 'message', message)
|
||||||
|
|
||||||
|
def on_default_status_expander_activate(self, expander):
|
||||||
|
eventbox = self.xml.get_widget('default_status_eventbox')
|
||||||
|
vbox = self.xml.get_widget('status_vbox')
|
||||||
|
vbox.set_child_packing(eventbox, not expander.get_expanded(), True, 0,
|
||||||
|
gtk.PACK_START)
|
||||||
|
|
||||||
def save_status_messages(self, model):
|
def save_status_messages(self, model):
|
||||||
for msg in gajim.config.get_per('statusmsg'):
|
for msg in gajim.config.get_per('statusmsg'):
|
||||||
gajim.config.del_per('statusmsg', msg)
|
gajim.config.del_per('statusmsg', msg)
|
||||||
|
|
Loading…
Reference in New Issue