rox.mime_handler | index

`This module allows applications to set themselves as the default handler for
a particular MIME type. This is generally not a good thing to do, because it
annoys users if programs fight over the defaults.`

Classes

``

rox.Dialog(gtk.Dialog)
  InstallList

class InstallList(rox.Dialog)
`` | `Dialog to select installation of MIME type handlers`

Methods defined here:

__init__(self, application, itype, dir, types, info=None, check=True)
  `Create the install list dialog.
  application - path to application to install
  itype - string describing the type of action to install
  dir - directory in Choices to store links in
  types - list of MIME types
  info - optional message to display below list
  check - if true (the default), check for existing entries`

get_active(self)
  `Return list of types selected for installing`

get_uninstall(self)
  `Return list of types selected for uninstalling`

install_toggled(self, cell, path, model)
  `Handle the CellRedererToggle stuff for the install column`

load_types(self)
  `Load list of types into window`

uninstall_toggled(self, cell, path, model)
  `Handle the CellRedererToggle stuff for the uninstall column`

Functions

``

install_from_appinfo(appdir='/home/tal00r/rox-lib-1.9.15/ROX-Lib2/Help/python')
  `Read the AppInfo file from the AppDir and perform the installations
  indicated. The elements to use are <CanThumbnail> and <CanRun>, each containing
  a number of <MimeType type='...'/> elements.
  appdir - Path to application (defaults to current app)`

install_run_action(types, application=None, overwrite=True)
  `Install application as the run action for 1 or more types.
  application should be the full path to the AppDir.
  If application is None then it is the running program which will
  be installed. If overwrite is False then existing run actions will
  not be changed. The user is asked to confirm the setting for each
  type.`

install_send_to_types(types, application=None)
  `Install application in the SendTo menu for 1 or more types.
  application should be the full path to the AppDir.
  If application is None then it is the running program which will
  be installed. The user is asked to confirm the setting for each
  type.`

install_thumbnailer(types, application=None, overwrite=True)
  `Install application as the thumbnail handler for 1 or more types.
  application should be the full path to the AppDir.
  If application is None then it is the running program which will
  be installed. If overwrite is False then existing thumbnailerss will
  not be changed. The user is asked to confirm the setting for each
  type.`