diff --git a/data/glade/preferences_window.glade b/data/glade/preferences_window.glade index 627c5cfe9..e25ca6467 100644 --- a/data/glade/preferences_window.glade +++ b/data/glade/preferences_window.glade @@ -11,6 +11,7 @@ True + vertical 6 @@ -21,6 +22,7 @@ True 12 + vertical 12 @@ -38,6 +40,7 @@ True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + vertical 6 @@ -363,6 +366,7 @@ Detached roster with chat grouped by type True 12 + vertical 6 @@ -377,6 +381,7 @@ Detached roster with chat grouped by type True + vertical 6 @@ -475,6 +480,7 @@ Show only in roster True + vertical 6 @@ -626,6 +632,7 @@ Always True + vertical 6 @@ -721,6 +728,7 @@ Always True 12 + vertical 12 @@ -848,6 +856,7 @@ Disabled True 12 + vertical 12 @@ -1044,6 +1053,7 @@ $T will be replaced by auto-not-available timeout True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + vertical 6 @@ -1293,6 +1303,7 @@ $T will be replaced by auto-not-available timeout True 12 + vertical 12 @@ -1921,10 +1932,193 @@ $T will be replaced by auto-not-available timeout tab + + + True + 12 + vertical + 12 + + + True + 0 + none + + + True + 12 + + + True + 2 + 2 + 6 + 6 + + + True + + + 1 + 2 + + + + + + True + + + 1 + 2 + 1 + 2 + + + + + + True + 0 + Audio input device + + + GTK_FILL + + + + + True + 0 + Audio output device + + + 1 + 2 + GTK_FILL + + + + + + + + + True + <b>Audio</b> + True + + + label_item + + + + + False + 0 + + + + + True + 0 + none + + + True + 12 + + + True + 2 + 2 + 6 + 6 + + + True + 0 + Video input device + + + GTK_FILL + + + + + True + 0 + Video output device + + + 1 + 2 + GTK_FILL + + + + + True + + + 1 + 2 + + + + + + True + + + 1 + 2 + 1 + 2 + + + + + + + + + + True + <b>Video</b> + True + + + label_item + + + + + False + 1 + + + + + 5 + + + + + True + Audio / Video + + + 5 + False + tab + + True 12 + vertical 12 @@ -1939,6 +2133,7 @@ $T will be replaced by auto-not-available timeout True + vertical 6 @@ -2193,6 +2388,7 @@ Custom True + vertical 6 @@ -2324,7 +2520,7 @@ Custom - 5 + 6 @@ -2333,7 +2529,7 @@ Custom Advanced - 5 + 6 False tab diff --git a/src/config.py b/src/config.py index adf5078c5..8f8490f0a 100644 --- a/src/config.py +++ b/src/config.py @@ -414,6 +414,26 @@ class PreferencesWindow: buf = self.xml.get_widget('msg_textview').get_buffer() buf.connect('changed', self.on_msg_textview_changed) + ### Style tab ### + # Audio + def create_av_combobox(opt_name, device_dict): + combobox = self.xml.get_widget(opt_name + '_combobox') + cell = gtk.CellRendererText() + combobox.pack_start(cell, True) + combobox.add_attribute(cell, 'text', 0) + model = gtk.ListStore(str, str) + combobox.set_model(model) + i = 0 + for name in device_dict: + model.append([name, device_dict[name]]) + if gajim.config.get(opt_name + '_device') == name: + combobox.set_active(i) + i += 1 + + create_av_combobox('audio_input', {'test': 'test'}) + create_av_combobox('audio_output', {'test': 'test'}) + create_av_combobox('video_input', {'test': 'test'}) + create_av_combobox('video_output', {'test': 'test'}) ### Advanced tab ### # open links with if os.name == 'nt':