katze-arrayaction

katze-arrayaction

Functions

Includes

#include <katze/katze.h>

Description

Functions

katze_array_action_get_array ()

KatzeArray *
katze_array_action_get_array (KatzeArrayAction *array_action);

Obtain the array which backs the array action.

Parameters

array_action

a KatzeArrayAction

 

Returns

the KatzeArray used by array_action .

[transfer none]


katze_array_action_set_array ()

void
katze_array_action_set_array (KatzeArrayAction *array_action,
                              KatzeArray *array);

katze_array_action_create_tool_item_for ()

GtkToolItem *
katze_array_action_create_tool_item_for
                               (KatzeArrayAction *array_action,
                                KatzeItem *item);

Creates a tool item for a particular item , that also reflects changes to its properties. In the case of an array, the item will create a popup menu with the contained items.

Note that the label is reasonably ellipsized for you, much like katze_image_menu_item_new_ellipsized().

Parameters

array_action

a KatzeArrayAction

 

item

a KatzeItem

 

Returns

a new tool item.

[transfer full]


katze_array_action_generate_menu ()

void
katze_array_action_generate_menu (KatzeArrayAction *array_action,
                                  KatzeArray *folder,
                                  GtkMenuShell *menu,
                                  GtkWidget *proxy);

Generates menu items according to folder , in the way they appear in automatically generated action proxies. The primary use is for implementing "populate-folder".

It is worth noting that folder can be any folder and can be generated dynamically if needed.

The proxy widget must be a related widget on the same screen, but doesn't have to be a proxy of the action.

Parameters

array_action

a KatzeArrayAction

 

folder

the folder to represent

 

menu

the menu shell to populate

 

proxy

the proxy, or alternatively a widget in the same window

 

Since 0.2.8

Types and Values