remove 2 ui options. prefs window needs cleaning. the less the better. remember HIG/GNOME: LESS IS MORE. power users can use ACE (advanced conf eidtor) and we could use GOOD DESC there and nice strigs in DID YOU KNOW wiki so some stuff can be easier exposed

This commit is contained in:
Nikos Kouremenos 2005-09-10 21:28:47 +00:00
parent 69f1e8758e
commit dc3b4fb35c
2 changed files with 4 additions and 112 deletions

View File

@ -178,21 +178,6 @@ class PreferencesWindow:
st = gajim.config.get('usetabbedchat')
self.xml.get_widget('use_tabbed_chat_window_checkbutton').set_active(st)
# tabs position
st = gajim.config.get('tabs_position')
sel = 0
if st == 'bottom':
sel = 1
elif st == 'left':
sel = 2
elif st == 'right':
sel = 3
self.xml.get_widget('tabs_pos_combobox').set_active(sel)
# always compact view
st = gajim.config.get('always_compact_view')
self.xml.get_widget('always_compact_view_checkbutton').set_active(st)
#use speller
if os.name == 'nt':
self.xml.get_widget('speller_checkbutton').set_no_show_all(True)
@ -631,21 +616,6 @@ class PreferencesWindow:
self.split_windows('gc')
self.plugin.save_config()
def on_tabs_pos_combobox_changed(self, widget):
sel = widget.get_active()
if sel == 1:
st = 'bottom'
elif sel == 2:
st = 'left'
elif sel == 3:
st = 'right'
else:
st = 'top'
gajim.config.set('tabs_position', st)
def on_always_compact_view_checkbutton_toggled(self, widget):
self.on_checkbutton_toggled(widget, 'always_compact_view')
def apply_speller(self, kind):
for acct in gajim.connections:
windows = self.plugin.windows[acct][kind]

View File

@ -3580,12 +3580,6 @@
<property name="homogeneous">False</property>
<property name="spacing">6</property>
<child>
<widget class="GtkHBox" id="hbox2994">
<property name="visible">True</property>
<property name="homogeneous">False</property>
<property name="spacing">12</property>
<child>
<widget class="GtkCheckButton" id="use_tabbed_chat_window_checkbutton">
<property name="visible">True</property>
@ -3599,57 +3593,6 @@
<property name="draw_indicator">True</property>
<signal name="toggled" handler="on_use_tabbed_chat_window_checkbutton_toggled" last_modification_time="Sun, 06 Mar 2005 15:11:41 GMT"/>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>
<child>
<widget class="GtkLabel" id="tabs_pos_label">
<property name="visible">True</property>
<property name="label" translatable="yes">Po_sition:</property>
<property name="use_underline">True</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
<property name="selectable">False</property>
<property name="xalign">0.5</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
<property name="mnemonic_widget">tabs_pos_combobox</property>
<property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
<property name="width_chars">-1</property>
<property name="single_line_mode">False</property>
<property name="angle">0</property>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>
<child>
<widget class="GtkComboBox" id="tabs_pos_combobox">
<property name="visible">True</property>
<property name="items" translatable="yes">Top
Bottom
Left
Right</property>
<property name="add_tearoffs">False</property>
<property name="focus_on_click">True</property>
<signal name="changed" handler="on_tabs_pos_combobox_changed" last_modification_time="Sun, 04 Sep 2005 12:20:33 GMT"/>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
@ -3657,27 +3600,6 @@ Right</property>
</packing>
</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 Alt+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>
<widget class="GtkCheckButton" id="speller_checkbutton">
<property name="can_focus">True</property>