Use get_cursor from gtk.util
This commit is contained in:
parent
cee63aa0d8
commit
431d8075a6
|
@ -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):
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue