always_compact_view setting has now a checkbutton

This commit is contained in:
Nikos Kouremenos 2005-07-30 07:18:08 +00:00
parent cae7a202bb
commit 00e4a6bb6b
2 changed files with 28 additions and 0 deletions

View File

@ -182,6 +182,10 @@ class PreferencesWindow:
st = gajim.config.get('usetabbedchat') st = gajim.config.get('usetabbedchat')
self.xml.get_widget('use_tabbed_chat_window_checkbutton').set_active(st) self.xml.get_widget('use_tabbed_chat_window_checkbutton').set_active(st)
# always compact view
st = gajim.config.get('always_compact_view')
self.xml.get_widget('always_compact_view_checkbutton').set_active(st)
#use speller #use speller
if os.name == 'nt': if os.name == 'nt':
self.xml.get_widget('speller_checkbutton').set_no_show_all(True) self.xml.get_widget('speller_checkbutton').set_no_show_all(True)
@ -572,6 +576,9 @@ class PreferencesWindow:
self.split_windows('gc') self.split_windows('gc')
self.plugin.save_config() self.plugin.save_config()
def on_always_compact_view_checkbutton_toggled(self, widget):
self.on_checkbutton_toggled(widget, 'always_compact_view')
def apply_speller(self, kind): def apply_speller(self, kind):
for acct in gajim.connections: for acct in gajim.connections:
windows = self.plugin.windows[acct][kind] windows = self.plugin.windows[acct][kind]

View File

@ -3328,6 +3328,27 @@
</packing> </packing>
</child> </child>
<child>
<widget class="GtkCheckButton" id="always_compact_view_checkbutton">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">If checked, all chat and group chat windows will have the information area in the top and the buttons area in the bottom hidden. You can quick toggle compact view with Ctrl+C. NOTE: The last state you leave a window/tab is not a permanent one</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Always use compact _view</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_always_compact_view_checkbutton_toggled" last_modification_time="Fri, 29 Jul 2005 19:35:06 GMT"/>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>
<child> <child>
<widget class="GtkCheckButton" id="speller_checkbutton"> <widget class="GtkCheckButton" id="speller_checkbutton">
<property name="can_focus">True</property> <property name="can_focus">True</property>