ChangelogViewer Gtk widget
-
button_press_event(text_view, event)
- callback for mouse click events
-
check_hovering(pos_x, pos_y)
- Check if the mouse is above a tagged link and if yes show
a hand cursor
- Create the context menu to be displayed when links are right
clicked
-
handle_context_menu(menuitem, action, url)
- Handle activate event for the links’ context menu
-
motion_notify_event(text_view, event)
- callback for the mouse movement event, that calls the
check_hovering method with the mouse postition coordiantes
-
on_insert_text(buf, iter_end, text, *args)
- Search for http URLs in newly inserted text
and tag them accordingly
-
classmethod open_url(url)
- Open the specified URL in a browser
-
tag_link(start, end, url)
- Apply the tag that marks links to the specified buffer selection
-
visibility_notify_event(text_view, event)
- callback if the widgets gets visible (e.g. moves to the foreground)
that calls the check_hovering method with the mouse position
coordinates