Update Manager API: Gtk.ui Frontend module

Gtk UI frontend module

Classes

class UpdateManager.Frontend.Gtk.ui.GtkUI(frontend)

Gtk/Glade userinterface class.

clear_busy_status()

Wrapper around set_busy_status(False). This is purely cosmetic and should improve readability of code.

close(widget, data=None)

Close callback.

exit()

Saves the state and exits the application.

gconf_store_launch_time()

Saves the launch time via gconf, for use by update-notifier.

on_button_about_clicked(source)

Callback method for about button that shows the about dialog.

Parameters:source – Source of event, unused.
on_button_install_clicked(widget)

Install button click handler.

Parameters:widget – Source of event
on_button_reload_clicked(widget)

Reload button click handler.

on_button_settings_clicked(widget)

Settings button click handler.

Parameters:widget – Source of event
on_get_focus(widget, data)

On focus handler

on_keyboard_interrupt()

Control+C handler

restore_state()

Restores the state from gconf.

save_state()

Saves the state.

Currently only the window-size is stored.

set_busy_status(state=True)

Shows a watch cursor if the application is busy for more than 0.3 seconds. Additionally implements a loop to handle user interface events meanwhile.

setup_dbus()

Sets up a DBUS listener if none is installed yet.

show_window()

Displays the main window.

update_install_button()

Helper method that sets the install button to sensitive or not depending on whether at least one package is selected for upgrading

update_package_list()

Package list updater.

Helper classes

class UpdateManager.Frontend.Gtk.ui.DetailsControl(userinterface, expander, gconfclient, nb_details, tv_changes, tv_desc, vb_updates)

Update details control/handler class

expander_toggled(expander, data)

Expander toggle handler

set_changelog_text(changelog)

Sets the changelog text.

set_description_text(desc)

Sets the description text.

set_sensitive(state)

Enables/disables control

class UpdateManager.Frontend.Gtk.ui.GtkDbusController(parent, bus_name, object_path='/org/freedesktop/UpdateManagerObject')

Helper class to provide UpdateManagerIFace via dbus.

bringToFront()

DBUS Service method for bringToFront

class UpdateManager.Frontend.Gtk.ui.UpdateListControl(userinterface, treeview)

Update ListView control/handler class.

changelog_failure(pkg_info, failure_message)

ChangelogHandler changelog_failure method

changelog_finished(pkg_info, text)

ChangelogHandler changelog_finished method

clear_store()

Empties the store

cursor_changed(treeview)

Cursor change handler.

deselect_all_rows(widget)

Handler for deselect all function.

get_store()

Returns the store.

classmethod install_column_view_func(cell_layout, renderer, model, iterator)

View handler function for the install column.

classmethod name_column_view_func(cell_layout, renderer, model, iterator)

View handler function for the name column.

row_activated(treeview, path, view_column)

Double-click handler.

Note

This handler expects row_toggled not to use the renderer parameter!

row_toggled(renderer, path)

Row toggle handler

select_all_rows(widget)

Handler for select all function.

set_package_selection(pkg_info, selected=True, handled=[])
set_sensitive(sensitive)

Wrapper around the treeview’s set_sensitive method.

Parameters:sensitive – Bool defining whether the widget should be sensitive or not.
show_context_menu(widget, event)

Shows the context menu for treeview entries.

store_append_category(cat_name, cat_id)

Appends a category description to the store.

Parameters:
  • cat_name – The category’s name.
  • cat_id – The category’s id.
store_append_pkg(pkg_info)

Appends a package object to the store.

Parameters:pkg_infoUpdateManager.Backend.PackageInfoBase object
store_get_update_count()

Returns the number of updates available.

store_is_empty()

Returns whether the store is empty or not.

update_details()

Details notebook updater

update_download_size()

Handler method that updates the download size label

Constants & Data

UpdateManager.Frontend.Gtk.ui.LIST_COL = <UpdateManager.Util.enum.Enum object at 0xae28b8c>

Enum:

CONTENTS = 0

NAME = 1

PKG_INFO = 2

CATEGORY_ID = 3

Table Of Contents

Previous topic

Update Manager API: Gtk.GtkProgress Frontend module

Next topic

Update Manager API: Gtk.utils Frontend module

This Page