![]() |
![]() |
![]() |
Libmatewnck Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties |
#include <libmatewnck/libmatewnck.h> struct MatewnckActionMenu; GtkWidget * matewnck_action_menu_new (MatewnckWindow *window
); GtkWidget * matewnck_create_window_action_menu (MatewnckWindow *window
);
GObject +----GInitiallyUnowned +----GtkObject +----GtkWidget +----GtkContainer +----GtkMenuShell +----GtkMenu +----MatewnckActionMenu
A MatewnckActionMenu is a menu containing items to manipulate a window. Relevant actions are displayed in the menu, and updated if the window state changes. The content of this menu is synchronized with the similar menu available in Marco.
If there is only one workspace with a viewport, the MatewnckActionMenu will contain items to move the window in the viewport as if the viewport feature was used to create workspaces. This is useful since viewport is generally used as an alternative way to create virtual desktops.
The MatewnckActionMenu does not support moving the window in the viewport if there are multiple workspaces on the screen: those two notions are so similar that having both at the same time would result in a menu which would be confusing to the user.
struct MatewnckActionMenu;
The MatewnckActionMenu struct contains only private fields and should not be directly accessed.
GtkWidget * matewnck_action_menu_new (MatewnckWindow *window
);
Creates a new MatewnckActionMenu. The MatewnckActionMenu will be filled with menu
items for window operations on window
.
|
the MatewnckWindow for which a menu will be created. |
Returns : |
a newly created MatewnckActionMenu. |
Since 2.22
GtkWidget * matewnck_create_window_action_menu (MatewnckWindow *window
);
matewnck_create_window_action_menu
has been deprecated since version 2.22 and should not be used in newly-written code. Use matewnck_action_menu_new()
instead.
Creates a new MatewnckActionMenu. The MatewnckActionMenu will be filled with menu
items for window operations on window
.
|
the MatewnckWindow for which a menu will be created. |
Returns : |
a newly created MatewnckActionMenu. |