diff --git a/gajim/chat_control.py b/gajim/chat_control.py index f69294bf9..da7e121b8 100644 --- a/gajim/chat_control.py +++ b/gajim/chat_control.py @@ -55,6 +55,7 @@ from gajim import dialogs from gajim.gtk.dialogs import ConfirmationDialog from gajim.gtk.add_contact import AddNewContactWindow from gajim.gtk.util import get_icon_name +from gajim.gtk.util import get_cursor from gajim.command_system.implementation.hosts import ChatCommands from gajim.command_system.framework import CommandHost # pylint: disable=unused-import @@ -596,11 +597,11 @@ class ChatControl(ChatControlBase): """ Just moved the mouse so show the cursor """ - cursor = gtkgui_helpers.get_cursor('LEFT_PTR') + cursor = get_cursor('LEFT_PTR') self.parent_win.window.get_window().set_cursor(cursor) def on_location_eventbox_enter_notify_event(self, widget, event): - cursor = gtkgui_helpers.get_cursor('HAND2') + cursor = get_cursor('HAND2') self.parent_win.window.get_window().set_cursor(cursor) def update_ui(self): diff --git a/gajim/gtkgui_helpers.py b/gajim/gtkgui_helpers.py index 54f2634de..bfe112ff7 100644 --- a/gajim/gtkgui_helpers.py +++ b/gajim/gtkgui_helpers.py @@ -139,11 +139,6 @@ def get_pixbuf_from_data(file_data): return pixbuf -def get_cursor(attr): - display = Gdk.Display.get_default() - cursor = getattr(Gdk.CursorType, attr) - return Gdk.Cursor.new_for_display(display, cursor) - def file_is_locked(path_to_file): """ Return True if file is locked