![]() |
![]() |
![]() |
plank Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties | Signals |
PlankItemsApplicationDockItemPlankItemsApplicationDockItem — A dock item for applications (with .desktop launchers). |
#define PLANK_ITEMS_TYPE_APPLICATION_DOCK_ITEM gboolean plank_items_application_dock_item_is_running (PlankItemsApplicationDockItem *self
); gboolean plank_items_application_dock_item_is_window (PlankItemsApplicationDockItem *self
); void plank_items_application_dock_item_set_urgent (PlankItemsApplicationDockItem *self
,gboolean is_urgent
); void plank_items_application_dock_item_load_from_launcher (PlankItemsApplicationDockItem *self
); gchar * plank_items_application_dock_item_get_unity_application_uri (PlankItemsApplicationDockItem *self
); gchar * plank_items_application_dock_item_get_unity_dbusname (PlankItemsApplicationDockItem *self
); void plank_items_application_dock_item_unity_update (PlankItemsApplicationDockItem *self
,const gchar *sender_name
,GVariantIter *prop_iter
); void plank_items_application_dock_item_unity_reset (PlankItemsApplicationDockItem *self
); PlankItemsApplicationDockItem * plank_items_application_dock_item_new_with_dockitem_file (GFile *file
); PlankItemsApplicationDockItem * plank_items_application_dock_item_new_with_dockitem_filename (const gchar *filename
); PlankItemsApplicationDockItem * plank_items_application_dock_item_new (void
); void plank_items_application_dock_item_parse_launcher (const gchar *launcher
,gchar **icon
,gchar **text
,GeeArrayList *actions
,GeeMap *actions_map
,GeeArrayList *mimes
); struct PlankItemsApplicationDockItem; struct PlankItemsApplicationDockItemClass;
GObject +----PlankItemsDockItem +----PlankItemsApplicationDockItem +----PlankItemsPlankDockItem +----PlankItemsTransientDockItem
"app-closed" :Run Last
"app-window-added" :Run Last
"app-window-removed" :Run Last
"pin-launcher" :Run Last
#define PLANK_ITEMS_TYPE_APPLICATION_DOCK_ITEM (plank_items_application_dock_item_get_type ())
The type for PlankItemsApplicationDockItem.
gboolean plank_items_application_dock_item_is_running
(PlankItemsApplicationDockItem *self
);
|
the PlankItemsApplicationDockItem instance |
gboolean plank_items_application_dock_item_is_window
(PlankItemsApplicationDockItem *self
);
|
the PlankItemsApplicationDockItem instance |
void plank_items_application_dock_item_set_urgent (PlankItemsApplicationDockItem *self
,gboolean is_urgent
);
|
the PlankItemsApplicationDockItem instance |
|
void plank_items_application_dock_item_load_from_launcher
(PlankItemsApplicationDockItem *self
);
Parses the associated launcher and sets the icon and text from it.
|
the PlankItemsApplicationDockItem instance |
gchar * plank_items_application_dock_item_get_unity_application_uri
(PlankItemsApplicationDockItem *self
);
Get libunity application URI
|
the PlankItemsApplicationDockItem instance |
Returns : |
the libunity application uri of this item, or NULL |
gchar * plank_items_application_dock_item_get_unity_dbusname
(PlankItemsApplicationDockItem *self
);
Get current libunity dbusname
|
the PlankItemsApplicationDockItem instance |
Returns : |
the dbusname which provides the LauncherEntry interface, or NULL |
void plank_items_application_dock_item_unity_update (PlankItemsApplicationDockItem *self
,const gchar *sender_name
,GVariantIter *prop_iter
);
Update this item's remote libunity value based on the given data
|
the PlankItemsApplicationDockItem instance |
|
. the corressponding dbusname. [in] |
|
. the data in a standardize format from libunity. [in] |
void plank_items_application_dock_item_unity_reset
(PlankItemsApplicationDockItem *self
);
Reset this item's remote libunity values
|
the PlankItemsApplicationDockItem instance |
PlankItemsApplicationDockItem * plank_items_application_dock_item_new_with_dockitem_file
(GFile *file
);
|
PlankItemsApplicationDockItem * plank_items_application_dock_item_new_with_dockitem_filename
(const gchar *filename
);
|
PlankItemsApplicationDockItem * plank_items_application_dock_item_new
(void
);
void plank_items_application_dock_item_parse_launcher (const gchar *launcher
,gchar **icon
,gchar **text
,GeeArrayList *actions
,GeeMap *actions_map
,GeeArrayList *mimes
);
Parses a launcher to get the text, icon and actions.
|
. the launcher file (.desktop file) to parse. [in] |
|
. the icon key from the launcher. [out] |
|
. the text key from the launcher. [out] |
|
. a list of all actions by name. [in][allow-none] |
|
. a map of actions from name to exec;;icon. [in][allow-none] |
|
. a list of all supported mime types. [in][allow-none] |
struct PlankItemsApplicationDockItem;
A dock item for applications (with .desktop launchers).
struct PlankItemsApplicationDockItemClass { PlankItemsDockItemClass parent_class; };
The class structure for PLANK_ITEMS_TYPE_APPLICATION_DOCK_ITEM
. All the fields in this structure are private and should never be accessed directly.
PlankItemsDockItemClass |
the parent class structure |
"app-closed"
signalvoid user_function (PlankItemsApplicationDockItem *application_dock_item,
gpointer user_data) : Run Last
Signal fired when the application associated with this item closes.
|
the PlankItemsApplicationDockItem instance that received the signal |
|
user data set when the signal handler was connected. |
"app-window-added"
signalvoid user_function (PlankItemsApplicationDockItem *application_dock_item,
gpointer user_data) : Run Last
Signal fired when the application associated with this item opened a new window.
|
the PlankItemsApplicationDockItem instance that received the signal |
|
user data set when the signal handler was connected. |
"app-window-removed"
signalvoid user_function (PlankItemsApplicationDockItem *application_dock_item,
gpointer user_data) : Run Last
Signal fired when the application associated with this item closed a window.
|
the PlankItemsApplicationDockItem instance that received the signal |
|
user data set when the signal handler was connected. |
"pin-launcher"
signalvoid user_function (PlankItemsApplicationDockItem *application_dock_item,
gpointer user_data) : Run Last
Signal fired when the item's 'keep in dock' menu item is pressed.
|
the PlankItemsApplicationDockItem instance that received the signal |
|
user data set when the signal handler was connected. |