![]() |
![]() |
![]() |
plank Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy |
PlankFactoriesItemFactoryPlankFactoriesItemFactory — An item factory. Creates PlankItemsDockItems based on .dockitem files. |
#define PLANK_FACTORIES_TYPE_ITEM_FACTORY PlankItemsDockItem * plank_factories_item_factory_make_item (PlankFactoriesItemFactory *self
,GFile *file
); PlankItemsDockItem * plank_factories_item_factory_default_make_item (PlankFactoriesItemFactory *self
,GFile *file
,const gchar *launcher
); gchar * plank_factories_item_factory_get_launcher_from_dockitem (PlankFactoriesItemFactory *self
,GFile *file
); void plank_factories_item_factory_make_default_items (PlankFactoriesItemFactory *self
); GFile * plank_factories_item_factory_make_dock_item (PlankFactoriesItemFactory *self
,const gchar *uri
); PlankFactoriesItemFactory * plank_factories_item_factory_new (void
); struct PlankFactoriesItemFactory; struct PlankFactoriesItemFactoryClass;
#define PLANK_FACTORIES_TYPE_ITEM_FACTORY (plank_factories_item_factory_get_type ())
The type for PlankFactoriesItemFactory.
PlankItemsDockItem * plank_factories_item_factory_make_item (PlankFactoriesItemFactory *self
,GFile *file
);
Creates a new PlankItemsDockItem from a .dockitem.
|
the PlankFactoriesItemFactory instance |
|
. the GFile of .dockitem file to parse. [in] |
Returns : |
the new PlankItemsDockItem created |
PlankItemsDockItem * plank_factories_item_factory_default_make_item (PlankFactoriesItemFactory *self
,GFile *file
,const gchar *launcher
);
Creates a new PlankItemsDockItem for a launcher parsed from a .dockitem.
|
the PlankFactoriesItemFactory instance |
|
. the GFile of .dockitem file that was parsed. [in] |
|
. the launcher name from the .dockitem. [in] |
Returns : |
the new PlankItemsDockItem created |
gchar * plank_factories_item_factory_get_launcher_from_dockitem (PlankFactoriesItemFactory *self
,GFile *file
);
Parses a .dockitem to get the launcher from it.
|
the PlankFactoriesItemFactory instance |
|
. the GFile of .dockitem to parse. [in] |
Returns : |
the launcher from the .dockitem |
void plank_factories_item_factory_make_default_items
(PlankFactoriesItemFactory *self
);
Creates a bunch of default .dockitem's.
|
the PlankFactoriesItemFactory instance |
GFile * plank_factories_item_factory_make_dock_item (PlankFactoriesItemFactory *self
,const gchar *uri
);
Creates a new .dockitem for a uri.
|
the PlankFactoriesItemFactory instance |
|
. the uri or path to create a .dockitem for. [in] |
Returns : |
the new GFile of the new .dockitem created |
PlankFactoriesItemFactory * plank_factories_item_factory_new
(void
);
struct PlankFactoriesItemFactory;
An item factory. Creates PlankItemsDockItems based on .dockitem files.
struct PlankFactoriesItemFactoryClass { GObjectClass parent_class; PlankItemsDockItem* (*make_item) (PlankFactoriesItemFactory* self, GFile* file); };
The class structure for PLANK_FACTORIES_TYPE_ITEM_FACTORY
. All the fields in this structure are private and should never be accessed directly.
GObjectClass |
the parent class structure |
virtual method called by plank_factories_item_factory_make_item()
|