Philipp Hörist pushed to branch master at gajim / gajim
Commits:
170692d1 by lovetox at 2022-01-31T23:35:16+01:00
Remove unused imports
- - - - -
1 changed file:
- gajim/gtk/controls/groupchat.py
Changes:
=====================================
gajim/gtk/controls/groupchat.py
=====================================
@@ -38,7 +38,6 @@
from nbxmpp.structs import PresenceProperties
from nbxmpp.structs import MessageProperties
from nbxmpp.structs import MucSubject
-from nbxmpp.task import Task
from gi.repository import Gtk
from gi.repository import Gdk
@@ -76,7 +75,6 @@
from gajim.gui.groupchat_state import GroupchatState
from gajim.gui.message_input import MessageInputTextView
from gajim.gui.util import NickCompletionGenerator
-from gajim.gui.util import get_app_window
from gajim.gui.util import open_window
from ..menus import get_encryption_menu
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/170692d1e50161d6cd9f40bdef5110ee…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/170692d1e50161d6cd9f40bdef5110ee…
You're receiving this email because of your account on dev.gajim.org.
Daniel Brötzmann pushed to branch master at gajim / gajim
Commits:
a1f58a5a by Daniel Brötzmann at 2022-01-31T09:18:18+00:00
ResourceSelector: Fix typo
- - - - -
1 changed file:
- gajim/gtk/resource_selector.py
Changes:
=====================================
gajim/gtk/resource_selector.py
=====================================
@@ -147,7 +147,7 @@ def __init__(self,
for constraint in constraints:
if not resource_contact.supports(constraint):
self.set_sensitive(False)
- self.set_tooltip_text(_('This devices is not compatible.'))
+ self.set_tooltip_text(_('This device is not compatible.'))
self.add(box)
self.show_all()
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/a1f58a5a69c3a248f0883d5a889716fa…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/a1f58a5a69c3a248f0883d5a889716fa…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
96274696 by lovetox at 2022-01-29T00:17:21+01:00
PlainWidget: Allow Focus and remove selection when focus is lost
Without focus keybindings like CTRL + C do not work anymore
Remove the selection on losing foucs so users know that they lost focus
- - - - -
1 changed file:
- gajim/gtk/conversation/plain_widget.py
Changes:
=====================================
gajim/gtk/conversation/plain_widget.py
=====================================
@@ -12,6 +12,8 @@
# You should have received a copy of the GNU General Public License
# along with Gajim. If not, see <http://www.gnu.org/licenses/>.
+from __future__ import annotations
+
from typing import Any
import logging
@@ -80,7 +82,6 @@ def __init__(self, account: str, selectable: bool) -> None:
self.set_xalign(0)
self.set_line_wrap_mode(Pango.WrapMode.WORD_CHAR)
self.set_track_visited_links(False)
- self.set_can_focus(False)
self._account = account
@@ -88,6 +89,7 @@ def __init__(self, account: str, selectable: bool) -> None:
self.connect('populate-popup', self._on_populate_popup)
self.connect('activate-link', self._on_activate_link)
+ self.connect('focus-out-event', self._on_focus_out)
def _on_populate_popup(self, label: Gtk.Label, menu: Gtk.Menu) -> None:
selected, start, end = label.get_selection_bounds()
@@ -124,6 +126,11 @@ def _on_activate_link(self, _label: Gtk.Label, uri: str) -> int:
open_uri(uri, self._account)
return Gdk.EVENT_STOP
+ def _on_focus_out(self,
+ widget: MessageLabel,
+ event: Gdk.EventFocus) -> None:
+ self.select_region(0, 0)
+
class MessageTextview(Gtk.TextView):
def __init__(self, account: str) -> None:
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/9627469656960af5858031333fbd3093…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/9627469656960af5858031333fbd3093…
You're receiving this email because of your account on dev.gajim.org.