Update Manager API: Gtk.ChangelogViewer Frontend module

Gtk Changelog viewer

class UpdateManager.Frontend.Gtk.ChangelogViewer.ChangelogViewer(changelog=None)

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_context_menu(url)

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

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

Previous topic

Update Manager API: Gtk Frontend module

Next topic

Update Manager API: Gtk.GtkProgress Frontend module

This Page