Commit f25d0e6a authored by Dicson's avatar Dicson

Change cursor on location icon. Fixes #7570

parent d33c475a
......@@ -1593,6 +1593,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')
......@@ -2026,6 +2032,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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment