Libwnck Reference Manual | ||||
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties |
#include <libwnck/libwnck.h> struct WnckActionMenu; GtkWidget * wnck_action_menu_new (WnckWindow *window
); GtkWidget * wnck_create_window_action_menu (WnckWindow *window
);
GObject +----GInitiallyUnowned +----GtkObject +----GtkWidget +----GtkContainer +----GtkMenuShell +----GtkMenu +----WnckActionMenu
A WnckActionMenu 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 Metacity.
If there is only one workspace with a viewport, the WnckActionMenu 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 WnckActionMenu 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 WnckActionMenu;
The WnckActionMenu struct contains only private fields and should not be directly accessed.
GtkWidget * wnck_action_menu_new (WnckWindow *window
);
Creates a new WnckActionMenu. The WnckActionMenu will be filled with menu
items for window operations on window
.
|
the WnckWindow for which a menu will be created. |
Returns : |
a newly created WnckActionMenu. |
Since 2.22
GtkWidget * wnck_create_window_action_menu (WnckWindow *window
);
wnck_create_window_action_menu
has been deprecated since version 2.22 and should not be used in newly-written code. Use wnck_action_menu_new()
instead.
Creates a new WnckActionMenu. The WnckActionMenu will be filled with menu
items for window operations on window
.
|
the WnckWindow for which a menu will be created. |
Returns : |
a newly created WnckActionMenu. |
"window"
property"window" gpointer : Read / Write / Construct Only
The window that will be manipulated through this menu.