menu.c File Reference

Go to the source code of this file.

Data Structures

struct  _MenuItem
struct  _MenuData

Typedefs

typedef struct _MenuItem MenuItem
typedef struct _MenuData MenuData

Enumerations

enum  MetaMenuItemType {
  MENU_ITEM_SEPARATOR = 0, MENU_ITEM_NORMAL, MENU_ITEM_IMAGE, MENU_ITEM_CHECKBOX,
  MENU_ITEM_RADIOBUTTON, MENU_ITEM_WORKSPACE_LIST
}

Functions

static void activate_cb (GtkWidget *menuitem, gpointer data)
static void popup_position_func (GtkMenu *menu, gint *x, gint *y, gboolean *push_in, gpointer user_data)
static void menu_closed (GtkMenu *widget, gpointer data)
static char * get_workspace_name_with_accel (Display *display, Window xroot, int index)
static GtkWidget * menu_item_new (MenuItem *menuitem, int workspace_id)
MetaWindowMenumeta_window_menu_new (MetaFrames *frames, MetaMenuOp ops, MetaMenuOp insensitive, Window client_xwindow, unsigned long active_workspace, int n_workspaces, MetaWindowMenuFunc func, gpointer data)
void meta_window_menu_popup (MetaWindowMenu *menu, int root_x, int root_y, int button, guint32 timestamp)
void meta_window_menu_free (MetaWindowMenu *menu)

Variables

static MenuItem menuitems []


Typedef Documentation

typedef struct _MenuData MenuData

Definition at line 38 of file menu.c.

typedef struct _MenuItem MenuItem

Definition at line 37 of file menu.c.


Enumeration Type Documentation

Enumerator:
MENU_ITEM_SEPARATOR 
MENU_ITEM_NORMAL 
MENU_ITEM_IMAGE 
MENU_ITEM_CHECKBOX 
MENU_ITEM_RADIOBUTTON 
MENU_ITEM_WORKSPACE_LIST 

Definition at line 40 of file menu.c.


Function Documentation

static void activate_cb ( GtkWidget *  menuitem,
gpointer  data 
) [static]

static char* get_workspace_name_with_accel ( Display *  display,
Window  xroot,
int  index 
) [static]

Definition at line 185 of file menu.c.

References _, meta_core_get_workspace_name_with_index(), and NULL.

Referenced by meta_window_menu_new().

static void menu_closed ( GtkMenu *  widget,
gpointer  data 
) [static]

static GtkWidget* menu_item_new ( MenuItem menuitem,
int  workspace_id 
) [static]

void meta_window_menu_free ( MetaWindowMenu menu  ) 

Definition at line 528 of file menu.c.

References _MetaWindowMenu::menu.

Referenced by meta_ui_window_menu_free().

MetaWindowMenu* meta_window_menu_new ( MetaFrames frames,
MetaMenuOp  ops,
MetaMenuOp  insensitive,
Window  client_xwindow,
unsigned long  active_workspace,
int  n_workspaces,
MetaWindowMenuFunc  func,
gpointer  data 
)

void meta_window_menu_popup ( MetaWindowMenu menu,
int  root_x,
int  root_y,
int  button,
guint32  timestamp 
)

Definition at line 499 of file menu.c.

References _MetaWindowMenu::menu, meta_warning(), NULL, and popup_position_func().

Referenced by meta_ui_window_menu_popup().

static void popup_position_func ( GtkMenu *  menu,
gint *  x,
gint *  y,
gboolean *  push_in,
gpointer  user_data 
) [static]

Definition at line 109 of file menu.c.

References META_UI_DIRECTION_RTL, and meta_ui_get_direction().

Referenced by meta_window_menu_popup().


Variable Documentation

MenuItem menuitems[] [static]

Definition at line 68 of file menu.c.


Generated on Sat Aug 23 22:04:22 2008 for metacity by  doxygen 1.5.5