Daniel Brötzmann pushed to branch gtk4 at gajim / gajim


Commits:
3d0a82df by wurstsalat at 2024-10-20T09:41:55+02:00
cfix: Remove breakpoint

- - - - -
24c1a660 by wurstsalat at 2024-10-20T09:43:04+02:00
refactor: MessageRowActions: Fix 'add reaction' style; fix deprecation

- - - - -


3 changed files:

- gajim/common/configpaths.py
- gajim/data/style/gajim.css
- gajim/gtk/conversation/rows/widgets.py


Changes:

=====================================
gajim/common/configpaths.py
=====================================
@@ -49,7 +49,6 @@ def get_plugin_dirs() -> list[Path]:
 
 def get_ui_path(filename: str) -> str:
     path = _paths['GUI'] / filename
-    breakpoint()
     return str(path)
 
 


=====================================
gajim/data/style/gajim.css
=====================================
@@ -844,6 +844,11 @@ .reaction {
 .reaction label {
     font-size: 90%;
 }
+.reaction > button {
+    border: none;
+    padding: 0;
+    background: transparent;
+}
 .dummy-emoji-entry {
     padding: 0;
     border: 0;


=====================================
gajim/gtk/conversation/rows/widgets.py
=====================================
@@ -24,7 +24,7 @@
 from gajim.common.types import ChatContactT
 
 from gajim.gtk.menus import get_groupchat_participant_menu
-from gajim.gtk.util import GajimPopover, SignalManager
+from gajim.gtk.util import GajimPopover
 
 if TYPE_CHECKING:
     from gajim.gtk.conversation.rows.message import MessageRow
@@ -133,7 +133,7 @@ def update(self, y_coord: float, message_row: MessageRow) 
-> None:
             GLib.source_remove(self._timeout_id)
             self._timeout_id = None
 
-        self_height = self.get_allocated_height()
+        self_height = self.get_height()
         y_coord = max(y_coord, self_height)
 
         # Subtract some space to let MessageRowActions 'flow' above the row,
@@ -147,7 +147,7 @@ def update(self, y_coord: float, message_row: MessageRow) 
-> None:
 
         self.set_margin_top(int(adjusted_y_coord))
 
-        message_row_width = self._message_row.get_allocated_width()
+        message_row_width = self._message_row.get_width()
         reactions_visible = self._get_reactions_visible()
 
         for button in self._reaction_buttons:



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/compare/f434cb7fa104cc8228fc27fb17840094c6096f35...24c1a660432d8d119b6bb5ebcb6de50135932263

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/compare/f434cb7fa104cc8228fc27fb17840094c6096f35...24c1a660432d8d119b6bb5ebcb6de50135932263
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