diff --git a/data/gui/preferences_window.ui b/data/gui/preferences_window.ui
index 95342be8f..3c92b89c1 100644
--- a/data/gui/preferences_window.ui
+++ b/data/gui/preferences_window.ui
@@ -16,6 +16,18 @@
1
10
+
@@ -390,10 +402,10 @@
True
False
- 0
1
_Window behavior:
True
+ 0
0
@@ -404,10 +416,10 @@
True
False
- 0
1
_Show roster on startup:
True
+ 0
0
@@ -609,8 +621,8 @@
True
False
GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
- 0
When new event is received:
+ 0
False
@@ -987,9 +999,9 @@
True
False
- 0
_Display chat state notifications:
True
+ 0
@@ -1043,9 +1055,9 @@
True
False
- 0
_Send chat state notifications:
True
+ 0
@@ -1150,8 +1162,8 @@
True
False
- 0
minutes
+ 0
2
@@ -1162,8 +1174,8 @@
True
False
- 0
minutes
+ 0
2
@@ -1342,9 +1354,49 @@ $T will be replaced by auto-not-available timeout
True
True
+ default_message_liststore
+
+
+ Status
+
+
+
+ 1
+
+
+
+
+
+
+ Default Message
+ True
+
+
+ True
+
+
+
+ 2
+
+
+
+
+
+
+ Enabled
+
+
+
+
+
+ 3
+
+
+
+
@@ -1390,6 +1442,7 @@ $T will be replaced by auto-not-available timeout
True
True
True
+ True
in
@@ -1438,6 +1491,8 @@ $T will be replaced by auto-not-available timeout
True
False
+ start
+ False
5
start
@@ -1540,9 +1595,9 @@ $T will be replaced by auto-not-available timeout
True
False
GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
- 0
Chat message:
start
+ 0
0
@@ -1618,9 +1673,9 @@ $T will be replaced by auto-not-available timeout
True
False
- 0
T_heme:
True
+ 0
0
@@ -1631,9 +1686,9 @@ $T will be replaced by auto-not-available timeout
True
False
- 0
Status _iconset:
True
+ 0
0
@@ -1740,10 +1795,10 @@ $T will be replaced by auto-not-available timeout
True
False
- 0
Contact's nickname:
True
center
+ 0
0
@@ -1754,8 +1809,8 @@ $T will be replaced by auto-not-available timeout
True
False
- 0
Contact's message:
+ 0
0
@@ -1766,10 +1821,10 @@ $T will be replaced by auto-not-available timeout
True
False
- 0
_Status message:
True
center
+ 0
0
@@ -1780,9 +1835,9 @@ $T will be replaced by auto-not-available timeout
True
False
- 0
Group chat highlight:
True
+ 0
0
@@ -1918,10 +1973,10 @@ $T will be replaced by auto-not-available timeout
True
False
- 0
Your nickname:
True
center
+ 0
2
@@ -1932,8 +1987,8 @@ $T will be replaced by auto-not-available timeout
True
False
- 0
Your message:
+ 0
2
@@ -1944,9 +1999,9 @@ $T will be replaced by auto-not-available timeout
True
False
- 0
_URL highlight:
True
+ 0
2
@@ -2156,8 +2211,8 @@ $T will be replaced by auto-not-available timeout
True
False
- 0
Audio input device
+ 0
0
@@ -2168,8 +2223,8 @@ $T will be replaced by auto-not-available timeout
True
False
- 0
Audio output device
+ 0
0
@@ -2234,8 +2289,8 @@ $T will be replaced by auto-not-available timeout
True
False
- 0
Video input device
+ 0
0
@@ -2246,8 +2301,8 @@ $T will be replaced by auto-not-available timeout
True
False
- 0
Video output device
+ 0
0
@@ -2258,8 +2313,8 @@ $T will be replaced by auto-not-available timeout
True
False
- 0
Video framerate
+ 0
0
@@ -2270,8 +2325,8 @@ $T will be replaced by auto-not-available timeout
True
False
- 0
Video size
+ 0
0
@@ -2374,8 +2429,8 @@ $T will be replaced by auto-not-available timeout
True
False
- 0
STUN server:
+ 0
0
@@ -2513,9 +2568,9 @@ to discover one from server.
True
False
- 0
_Mail client:
True
+ 0
0
@@ -2526,9 +2581,9 @@ to discover one from server.
True
False
- 0
_Browser:
True
+ 0
0
@@ -2539,9 +2594,9 @@ to discover one from server.
True
False
- 0
_File manager:
True
+ 0
0
@@ -2723,9 +2778,9 @@ to discover one from server.
True
False
- 0
Global proxy:
0.01
+ 0
0
diff --git a/src/config.py b/src/config.py
index abaedfb94..db397e09b 100644
--- a/src/config.py
+++ b/src/config.py
@@ -402,37 +402,6 @@ class PreferencesWindow:
# Default Status messages
self.default_msg_tree = self.xml.get_object('default_msg_treeview')
-
- #FIXME: That doesn't seem to work:
- context = self.default_msg_tree.get_style_context()
- col2 = context.get_background_color(Gtk.StateFlags.ACTIVE)
-
- # (status, translated_status, message, enabled)
- model = Gtk.ListStore(str, str, str, bool)
- self.default_msg_tree.set_model(model)
- col = Gtk.TreeViewColumn(_('Status'))
- col.set_resizable(True)
- self.default_msg_tree.append_column(col)
- renderer = Gtk.CellRendererText()
- col.pack_start(renderer, False)
- col.add_attribute(renderer, 'text', 1)
- col = Gtk.TreeViewColumn(_('Default Message'))
- col.set_resizable(True)
- self.default_msg_tree.append_column(col)
- renderer = Gtk.CellRendererText()
- col.pack_start(renderer, True)
- col.add_attribute(renderer, 'text', 2)
- renderer.connect('edited', self.on_default_msg_cell_edited)
- renderer.set_property('editable', True)
- renderer.set_property('cell-background-rgba', col2)
- col = Gtk.TreeViewColumn(_('Enabled'))
- col.set_resizable(True)
- self.default_msg_tree.append_column(col)
- renderer = Gtk.CellRendererToggle()
- col.pack_start(renderer, False)
- col.add_attribute(renderer, 'active', 3)
- renderer.set_property('activatable', True)
- renderer.connect('toggled', self.default_msg_toggled_cb)
self.fill_default_msg_treeview()
# Status messages