Skip to content
Snippets Groups Projects
Commit 9e39f8d0 authored by Dicson's avatar Dicson
Browse files

Change cursor on location icon. Fixes #7570

parent 6b35ad79
No related branches found
No related tags found
No related merge requests found
......@@ -1630,6 +1630,12 @@ class ChatControl(ChatControlBase):
id_ = widget.connect('button-release-event',
self.on_location_eventbox_button_release_event)
self.handlers[id_] = widget
id_ = widget.connect('enter-notify-event',
self.on_location_eventbox_enter_notify_event)
self.handlers[id_] = widget
id_ = widget.connect('leave-notify-event',
self.on_location_eventbox_leave_notify_event)
self.handlers[id_] = widget
for key in ('1', '2', '3', '4', '5', '6', '7', '8', '9', '*', '0', '#'):
widget = self.xml.get_object(key + '_button')
......@@ -2064,6 +2070,17 @@ class ChatControl(ChatControlBase):
'lon': location['lon']}
helpers.launch_browser_mailer('url', uri)
def on_location_eventbox_leave_notify_event(self, widget, event):
"""
Just moved the mouse so show the cursor
"""
cursor = gtk.gdk.Cursor(gtk.gdk.LEFT_PTR)
self.parent_win.window.window.set_cursor(cursor)
def on_location_eventbox_enter_notify_event(self, widget, event):
cursor = gtk.gdk.Cursor(gtk.gdk.HAND2)
self.parent_win.window.window.set_cursor(cursor)
def _on_window_motion_notify(self, widget, event):
"""
It gets called no matter if it is the active window or not
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment