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:
parent
69f1e8758e
commit
dc3b4fb35c
|
@ -178,21 +178,6 @@ 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)
|
||||||
|
|
||||||
# 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
|
#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)
|
||||||
|
@ -631,21 +616,6 @@ class PreferencesWindow:
|
||||||
self.split_windows('gc')
|
self.split_windows('gc')
|
||||||
self.plugin.save_config()
|
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):
|
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]
|
||||||
|
|
|
@ -3581,100 +3581,22 @@
|
||||||
<property name="spacing">6</property>
|
<property name="spacing">6</property>
|
||||||
|
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkHBox" id="hbox2994">
|
<widget class="GtkCheckButton" id="use_tabbed_chat_window_checkbutton">
|
||||||
<property name="visible">True</property>
|
<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>
|
|
||||||
<property name="can_focus">True</property>
|
|
||||||
<property name="label" translatable="yes">Use a single chat window with _tabs</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_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>
|
|
||||||
<property name="fill">True</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="can_focus">True</property>
|
||||||
<property name="label" translatable="yes">Always use compact _view</property>
|
<property name="label" translatable="yes">Use a single chat window with _tabs</property>
|
||||||
<property name="use_underline">True</property>
|
<property name="use_underline">True</property>
|
||||||
<property name="relief">GTK_RELIEF_NORMAL</property>
|
<property name="relief">GTK_RELIEF_NORMAL</property>
|
||||||
<property name="focus_on_click">True</property>
|
<property name="focus_on_click">True</property>
|
||||||
<property name="active">False</property>
|
<property name="active">False</property>
|
||||||
<property name="inconsistent">False</property>
|
<property name="inconsistent">False</property>
|
||||||
<property name="draw_indicator">True</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"/>
|
<signal name="toggled" handler="on_use_tabbed_chat_window_checkbutton_toggled" last_modification_time="Sun, 06 Mar 2005 15:11:41 GMT"/>
|
||||||
</widget>
|
</widget>
|
||||||
<packing>
|
<packing>
|
||||||
<property name="padding">0</property>
|
<property name="padding">0</property>
|
||||||
<property name="expand">False</property>
|
<property name="expand">False</property>
|
||||||
<property name="fill">False</property>
|
<property name="fill">True</property>
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue