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


Commits:
49a7b2f2 by wurstsalat at 2024-12-07T20:40:23+01:00
cfix: Menus: Add ellipsis to 'Direct Message…' menu entry

- - - - -
14deec1b by wurstsalat at 2024-12-07T20:40:23+01:00
cq: Remove unused imports

- - - - -
ab2a9c09 by wurstsalat at 2024-12-07T20:40:23+01:00
cfix: VoiceRequestsButton: Use bare JID; add JID to tooltip

- - - - -


6 changed files:

- gajim/gtk/avatar_selector.py
- gajim/gtk/chat_stack.py
- gajim/gtk/const.py
- gajim/gtk/file_transfer_selector.py
- gajim/gtk/groupchat_voice_requests_button.py
- gajim/gtk/menus.py


Changes:

=====================================
gajim/gtk/avatar_selector.py
=====================================
@@ -27,8 +27,6 @@
 from gajim.common.util.image import scale_with_ratio
 from gajim.common.util.uri import get_file_path_from_dnd_dropped_uri
 
-# from gajim.gtk.const import DND_TARGET_FLATPAK
-# from gajim.gtk.const import DND_TARGET_URI_LIST
 from gajim.gtk.dialogs import ErrorDialog
 from gajim.gtk.filechoosers import AvatarFileChooserButton
 from gajim.gtk.util import SignalManager


=====================================
gajim/gtk/chat_stack.py
=====================================
@@ -41,9 +41,6 @@
 from gajim.gtk.chat_banner import ChatBanner
 from gajim.gtk.chat_function_page import ChatFunctionPage
 from gajim.gtk.chat_function_page import FunctionMode
-
-# from gajim.gtk.const import DND_TARGET_FLATPAK
-# from gajim.gtk.const import DND_TARGET_URI_LIST
 from gajim.gtk.control import ChatControl
 from gajim.gtk.dialogs import ErrorDialog
 from gajim.gtk.message_actions_box import MessageActionsBox


=====================================
gajim/gtk/const.py
=====================================
@@ -45,12 +45,6 @@ class Setting(NamedTuple):
 
 DEFAULT_WORKSPACE_COLOR = "rgb(191,15,167)"
 
-# Drag and drop target type URI list (for dropped files)
-TARGET_TYPE_URI_LIST = 80
-
-DND_TARGET_URI_LIST = "text/uri-list"
-DND_TARGET_FLATPAK = "application/vnd.portal.filetransfer"
-
 MAX_MESSAGE_LENGTH = 5000
 
 


=====================================
gajim/gtk/file_transfer_selector.py
=====================================
@@ -28,9 +28,6 @@
 from gajim.common.util.uri import get_file_path_from_dnd_dropped_uri
 
 from gajim.gtk.builder import get_builder
-
-# from gajim.gtk.const import DND_TARGET_FLATPAK
-# from gajim.gtk.const import DND_TARGET_URI_LIST
 from gajim.gtk.filechoosers import FileChooserButton
 from gajim.gtk.resource_selector import ResourceSelector
 from gajim.gtk.util import iterate_listbox_children


=====================================
gajim/gtk/groupchat_voice_requests_button.py
=====================================
@@ -88,11 +88,12 @@ def _on_button_clicked(self, _button: VoiceRequestsButton) 
-> None:
             request_box = Gtk.Box(spacing=12)
 
             name_label = Gtk.Label(
-                label=f"{request.nick} ({request.jid})",
+                label=f"{request.nick} ({request.jid.bare})",
                 hexpand=True,
                 max_width_chars=30,
                 ellipsize=Pango.EllipsizeMode.MIDDLE,
                 xalign=0,
+                tooltip_text=str(request.jid.bare),
             )
             request_box.append(name_label)
 


=====================================
gajim/gtk/menus.py
=====================================
@@ -705,7 +705,7 @@ def get_groupchat_participant_menu(
     value = str(contact.name)
 
     general_items: MenuItemListT = [
-        (_("Direct Message"), "win.add-chat", dm_params),
+        (_("Direct Message…"), "win.add-chat", dm_params),
         (_("Details"), "win.muc-contact-info", value),
         (_("Execute Command…"), "win.muc-execute-command", value),
     ]



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/compare/539100af4e7ca4e26f5b83bc0b40149284d0a85e...ab2a9c09af91f7ca2fe4ed3a8889fbb776678ed6

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/compare/539100af4e7ca4e26f5b83bc0b40149284d0a85e...ab2a9c09af91f7ca2fe4ed3a8889fbb776678ed6
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