Philipp Hörist pushed to branch master at gajim / gajim


Commits:
f33ffcf0 by Philipp Hörist at 2025-01-25T00:28:18+01:00
refactor: Settings: Don’t query value twice

- - - - -
19a4259b by Philipp Hörist at 2025-01-25T01:04:43+01:00
imprv: Preferences: Hide Audio/Video settings

This feature is currently not maintained

- - - - -


3 changed files:

- gajim/data/gui/preferences.ui
- gajim/gtk/preferences.py
- gajim/gtk/settings.py


Changes:

=====================================
gajim/data/gui/preferences.ui
=====================================
@@ -562,7 +562,7 @@
             </property>
           </object>
         </child>
-        <child>
+<!--         <child>
           <object class="GtkStackPage">
             <property name="name">audio_video</property>
             <property name="title" translatable="1">Audio/Video</property>
@@ -770,7 +770,7 @@
               </object>
             </property>
           </object>
-        </child>
+        </child> -->
         <child>
           <object class="GtkStackPage">
             <property name="name">advanced</property>


=====================================
gajim/gtk/preferences.py
=====================================
@@ -79,20 +79,20 @@ def __init__(self) -> None:
             ("status_message", StatusMessage),
             ("automatic_status", AutomaticStatus),
             ("themes", Themes),
-            ("server", Server),
-            ("audio", Audio),
-            ("video", Video),
+            # ("server", Server),
+            # ("audio", Audio),
+            # ("video", Video),
             ("miscellaneous", Miscellaneous),
             ("advanced", Advanced),
         ]
 
         self._add_prefs(prefs)
-        self._add_video_preview()
+        # self._add_video_preview()
 
-        self._ui.av_info_bar.set_reveal_child(
-            not app.is_installed("AV") or sys.platform == "win32"
-        )
-        self._ui.av_info_bar_label.set_text(_("Video calls are not supported"))
+        # self._ui.av_info_bar.set_reveal_child(
+        #     not app.is_installed("AV") or sys.platform == "win32"
+        # )
+        # self._ui.av_info_bar_label.set_text(_("Video calls are not 
supported"))
 
     def get_ui(self):
         return self._ui


=====================================
gajim/gtk/settings.py
=====================================
@@ -692,7 +692,7 @@ def __init__(
         box.set_hexpand(True)
 
         self._dropdown = GajimDropDown(data=data, fixed_width=15)
-        self._dropdown.select_key(self.get_value())
+        self._dropdown.select_key(self.setting_value)
         self._dropdown.connect("notify::selected", self._on_selected)
         box.append(self._dropdown)
 



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/compare/1d556e2a364c79e03be9535a4956050f07d3369a...19a4259b77616cda44b366b1052316871d4ac6e8

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/compare/1d556e2a364c79e03be9535a4956050f07d3369a...19a4259b77616cda44b366b1052316871d4ac6e8
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to