PeasGtkPluginManagerView

PeasGtkPluginManagerView — Management tree view for plugins.

Synopsis

                    PeasGtkPluginManagerView;
                    PeasGtkPluginManagerViewClass;
GtkWidget *         peas_gtk_plugin_manager_view_new    (void);
void                peas_gtk_plugin_manager_view_set_show_builtin
                                                        (PeasGtkPluginManagerView *view,
                                                         gboolean show_builtin);
gboolean            peas_gtk_plugin_manager_view_get_show_builtin
                                                        (PeasGtkPluginManagerView *view);
void                peas_gtk_plugin_manager_view_set_selected_iter
                                                        (PeasGtkPluginManagerView *view,
                                                         GtkTreeIter *iter);
gboolean            peas_gtk_plugin_manager_view_get_selected_iter
                                                        (PeasGtkPluginManagerView *view,
                                                         GtkTreeIter *iter);
void                peas_gtk_plugin_manager_view_set_selected_plugin
                                                        (PeasGtkPluginManagerView *view,
                                                         PeasPluginInfo *info);
PeasPluginInfo *    peas_gtk_plugin_manager_view_get_selected_plugin
                                                        (PeasGtkPluginManagerView *view);

Object Hierarchy

  GObject
   +----GInitiallyUnowned
         +----GtkWidget
               +----GtkContainer
                     +----GtkTreeView
                           +----PeasGtkPluginManagerView

Implemented Interfaces

PeasGtkPluginManagerView implements AtkImplementorIface and GtkBuildable.

Properties

  "show-builtin"             gboolean              : Read / Write

Signals

  "populate-popup"                                 : Run Last

Description

The PeasGtkPluginManagerView is a tree view that can be used to manage plugins, i.e. load or unload them, and see some pieces of information.

The only thing you need to do as an application writer if you wish to use the view to configure your plugins is to instantiate it using peas_gtk_plugin_manager_view_new() and pack it into another widget or a window.

Note: Changing the model of the view is not supported.

Details

PeasGtkPluginManagerView

typedef struct _PeasGtkPluginManagerView PeasGtkPluginManagerView;

PeasGtkPluginManagerViewClass

typedef struct {
  GtkTreeViewClass parent_class;

  void  (*populate_popup)   (PeasGtkPluginManagerView *view,
                             GtkMenu                  *menu);
} PeasGtkPluginManagerViewClass;

peas_gtk_plugin_manager_view_new ()

GtkWidget *         peas_gtk_plugin_manager_view_new    (void);

Creates a new plugin manager view for the given PeasEngine.

Returns :

the new PeasGtkPluginManagerView.

peas_gtk_plugin_manager_view_set_show_builtin ()

void                peas_gtk_plugin_manager_view_set_show_builtin
                                                        (PeasGtkPluginManagerView *view,
                                                         gboolean show_builtin);

Sets if builtin plugins should be shown.

view :

A PeasGtkPluginManagerView.

show_builtin :

If builtin plugins should be shown.

peas_gtk_plugin_manager_view_get_show_builtin ()

gboolean            peas_gtk_plugin_manager_view_get_show_builtin
                                                        (PeasGtkPluginManagerView *view);

Returns if builtin plugins should be shown.

view :

A PeasGtkPluginManagerView.

Returns :

if builtin plugins should be shown.

peas_gtk_plugin_manager_view_set_selected_iter ()

void                peas_gtk_plugin_manager_view_set_selected_iter
                                                        (PeasGtkPluginManagerView *view,
                                                         GtkTreeIter *iter);

Selects iter.

view :

A PeasGtkPluginManagerView.

iter :

A GtkTreeIter.

peas_gtk_plugin_manager_view_get_selected_iter ()

gboolean            peas_gtk_plugin_manager_view_get_selected_iter
                                                        (PeasGtkPluginManagerView *view,
                                                         GtkTreeIter *iter);

Returns if iter was set to the selected plugin.

view :

A PeasGtkPluginManagerView.

iter :

A GtkTreeIter.

Returns :

if iter was set.

peas_gtk_plugin_manager_view_set_selected_plugin ()

void                peas_gtk_plugin_manager_view_set_selected_plugin
                                                        (PeasGtkPluginManagerView *view,
                                                         PeasPluginInfo *info);

Selects the given plugin.


peas_gtk_plugin_manager_view_get_selected_plugin ()

PeasPluginInfo *    peas_gtk_plugin_manager_view_get_selected_plugin
                                                        (PeasGtkPluginManagerView *view);

Returns the currently selected plugin, or NULL if a plugin is not selected.

view :

A PeasGtkPluginManagerView.

Returns :

the selected plugin.

Property Details

The "show-builtin" property

  "show-builtin"             gboolean              : Read / Write

If builtin plugins should be shown.

Default value: FALSE

Signal Details

The "populate-popup" signal

void                user_function                      (PeasGtkPluginManagerView *view,
                                                        GtkMenu                  *menu,
                                                        gpointer                  user_data)      : Run Last

The populate-popup signal is emitted before showing the context menu of the view. If you need to add items to the context menu, connect to this signal and add your menuitems to the menu.

view :

A PeasGtkPluginManagerView.

menu :

A GtkMenu.

user_data :

user data set when the signal handler was connected.