Philipp Hörist pushed to branch master at gajim / gajim
Commits:
8dc8cfbf by Marcin Mielniczuk at 2021-11-29T20:13:38+01:00
Drag & Drop: Show info message if paths are skipped
Related to #10544
- - - - -
2 changed files:
- gajim/chat_control_base.py
- gajim/common/helpers.py
Changes:
=====================================
gajim/chat_control_base.py
=====================================
@@ -965,12 +965,13 @@ def _on_drag_motion(self, *args):
self.xml.drop_area.set_no_show_all(False)
self.xml.drop_area.show_all()
- def drag_data_file_transfer(self, selection):
+ def drag_data_file_transfer(self, selection: Gtk.SelectionData) -> None:
# we may have more than one file dropped
uri_splitted = selection.get_uris()
for uri in uri_splitted:
path = helpers.get_file_path_from_dnd_dropped_uri(uri)
if not os.path.isfile(path): # is it a file?
+ self.add_info_message(_("The following file could not be accessed and was not uploaded: ") + path)
continue
self._start_filetransfer(path)
=====================================
gajim/common/helpers.py
=====================================
@@ -352,7 +352,7 @@ def build_command(executable, parameter):
command = '%s "%s"' % (executable, parameter)
return command
-def get_file_path_from_dnd_dropped_uri(uri):
+def get_file_path_from_dnd_dropped_uri(uri: str) -> str:
path = urllib.parse.unquote(uri) # escape special chars
path = path.strip('\r\n\x00') # remove \r\n and NULL
# get the path to file
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/8dc8cfbfa8d4ddf111c68495febb91aa…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/8dc8cfbfa8d4ddf111c68495febb91aa…
You're receiving this email because of your account on dev.gajim.org.
Daniel Brötzmann pushed to branch mainwindow at gajim / gajim
Commits:
71f4fdab by wurstsalat at 2021-11-29T09:27:40+01:00
Fix issue with activating window
- - - - -
1 changed file:
- gajim/gtk/main.py
Changes:
=====================================
gajim/gtk/main.py
=====================================
@@ -534,7 +534,7 @@ def _on_window_active(self, window, _param):
return
if control.get_autoscroll():
- self.mark_as_read(control.account, control.jid)
+ self.mark_as_read(control.account, control.contact.jid)
@staticmethod
def contact_info(account, jid):
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/71f4fdabf7ecaa157a6153d4f212d53e…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/71f4fdabf7ecaa157a6153d4f212d53e…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch new_xml_parser at gajim / python-nbxmpp
Commits:
22aaefb2 by wurstsalat at 2021-11-10T21:54:31+01:00
Add XEP-0425: Message Moderation
- - - - -
112c06bc by lovetox at 2021-11-28T00:57:08+01:00
Inital
- - - - -
20 changed files:
- ChangeLog
- nbxmpp/__init__.py
- nbxmpp/addresses.py
- nbxmpp/auth.py
- + nbxmpp/builder.py
- − nbxmpp/c14n.py
- nbxmpp/client.py
- nbxmpp/connection.py
- nbxmpp/const.py
- nbxmpp/dispatcher.py
- + nbxmpp/elements.py
- nbxmpp/errors.py
- nbxmpp/examples/client.py
- nbxmpp/examples/client.ui
- nbxmpp/exceptions.py
- − nbxmpp/idlequeue.py
- + nbxmpp/jid.py
- + nbxmpp/lookups.py
- nbxmpp/modules/activity.py
- nbxmpp/modules/adhoc.py
The diff was not included because it is too large.
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/-/compare/1732199d3c7ff7da99dd7c2…
--
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/-/compare/1732199d3c7ff7da99dd7c2…
You're receiving this email because of your account on dev.gajim.org.
Daniel Brötzmann pushed to branch mainwindow at gajim / gajim
Commits:
fe77a7df by wurstsalat at 2021-11-27T18:59:17+01:00
Main: Add header
- - - - -
1 changed file:
- gajim/gtk/main.py
Changes:
=====================================
gajim/gtk/main.py
=====================================
@@ -1,3 +1,17 @@
+# This file is part of Gajim.
+#
+# Gajim is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published
+# by the Free Software Foundation; version 3 only.
+#
+# Gajim is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with Gajim. If not, see <http://www.gnu.org/licenses/>.
+
from typing import Optional
from typing import Generator
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/fe77a7df9dab372acce1147d2a4839b8…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/fe77a7df9dab372acce1147d2a4839b8…
You're receiving this email because of your account on dev.gajim.org.