MatewnckActionMenu

MatewnckActionMenu — a menu widget, used to manipulate a window.

Stability Level

Unstable, unless otherwise indicated

Synopsis

#include <libmatewnck/libmatewnck.h>

struct              MatewnckActionMenu;
GtkWidget *         matewnck_action_menu_new            (MatewnckWindow *window);
GtkWidget *         matewnck_create_window_action_menu  (MatewnckWindow *window);

Object Hierarchy

  GObject
   +----GInitiallyUnowned
         +----GtkObject
               +----GtkWidget
                     +----GtkContainer
                           +----GtkMenuShell
                                 +----GtkMenu
                                       +----MatewnckActionMenu

Implemented Interfaces

MatewnckActionMenu implements AtkImplementorIface and GtkBuildable.

Properties

  "window"                   gpointer              : Read / Write / Construct Only

Description

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.

Note

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.

Details

struct MatewnckActionMenu

struct MatewnckActionMenu;

The MatewnckActionMenu struct contains only private fields and should not be directly accessed.


matewnck_action_menu_new ()

GtkWidget *         matewnck_action_menu_new            (MatewnckWindow *window);

Creates a new MatewnckActionMenu. The MatewnckActionMenu will be filled with menu items for window operations on window.

window :

the MatewnckWindow for which a menu will be created.

Returns :

a newly created MatewnckActionMenu.

Since 2.22


matewnck_create_window_action_menu ()

GtkWidget *         matewnck_create_window_action_menu  (MatewnckWindow *window);

Warning

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.

window :

the MatewnckWindow for which a menu will be created.

Returns :

a newly created MatewnckActionMenu.

Property Details

The "window" property

  "window"                   gpointer              : Read / Write / Construct Only

The window that will be manipulated through this menu.

See Also

MatewnckWindow