Philipp Hörist pushed to branch gtk4 at gajim / gajim
Commits:
72b0705b by Philipp Hörist at 2024-10-04T18:07:21+02:00
refactor: Rename widget
- - - - -
8a8cc1a5 by Philipp Hörist at 2024-10-04T18:36:46+02:00
refactor: Remove method
- - - - -
3 changed files:
- gajim/data/gui/chat_list_row.ui
- gajim/gtk/chat_list_row.py
- gajim/gtk/util.py
Changes:
=====================================
gajim/data/gui/chat_list_row.ui
=====================================
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<requires lib="gtk" version="4.0"/>
- <object class="GtkBox" id="eventbox">
+ <object class="GtkBox" id="mainbox">
<property name="visible">True</property>
<property name="can-focus">False</property>
<!-- <signal name="button-press-event"
handler="_on_row_button_press_event" swapped="no"/> -->
=====================================
gajim/gtk/chat_list_row.py
=====================================
@@ -99,7 +99,7 @@ def __init__(self,
self.get_style_context().add_class('chatlist-row')
self._ui = get_builder('chat_list_row.ui', self)
- self.set_child(self._ui.eventbox)
+ self.set_child(self._ui.mainbox)
self.connect('state-flags-changed', self._on_state_flags_changed)
self.connect('destroy', self._on_destroy)
=====================================
gajim/gtk/util.py
=====================================
@@ -971,8 +971,6 @@ def __init__(self,
if event is not None:
self.set_pointing_from_event(event)
- self.connect('closed', self._destroy)
-
def set_pointing_from_event(self, event: Any) -> None:
self.set_pointing_to_coord(event.x, event.y)
@@ -980,12 +978,6 @@ def set_pointing_to_coord(self, x: float, y: float) ->
None:
rectangle = GdkRectangle(x=int(x), y=int(y))
self.set_pointing_to(rectangle)
- @staticmethod
- def _destroy(popover: Gtk.Popover) -> None:
- print('called')
- app.check_finalize(popover)
- # GLib.idle_add(popover.set_relative_to, None)
-
def iterate_listbox_children(listbox: Gtk.ListBox) -> Iterator[Gtk.Widget]:
index = 0
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/compare/152025997b3f48749130a7df4a7af705d61dc301...8a8cc1a592fb14e1590dcb767b638742ca705de0
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/compare/152025997b3f48749130a7df4a7af705d61dc301...8a8cc1a592fb14e1590dcb767b638742ca705de0
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]