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) |
| 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) |
| void | meta_window_menu_free (MetaWindowMenu *menu) |
Variables | |
| static MenuItem | menuitems [] |
| enum MetaMenuItemType |
| static void activate_cb | ( | GtkWidget * | menuitem, | |
| gpointer | data | |||
| ) | [static] |
Definition at line 152 of file menu.c.
References _MetaWindowMenu::client_xwindow, _MetaWindowMenu::data, _MetaWindowMenu::frames, _MetaWindowMenu::func, _MenuData::menu, meta_frames_notify_menu_hide(), and _MenuData::op.
Referenced by meta_window_menu_new().
| 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] |
Definition at line 134 of file menu.c.
References _MetaWindowMenu::client_xwindow, _MetaWindowMenu::data, _MetaWindowMenu::frames, _MetaWindowMenu::func, and meta_frames_notify_menu_hide().
Referenced by meta_window_menu_new().
| static GtkWidget* menu_item_new | ( | MenuItem * | menuitem, | |
| int | workspace_id | |||
| ) | [static] |
Definition at line 264 of file menu.c.
References _, _MenuItem::checked, _MenuItem::label, MENU_ITEM_CHECKBOX, MENU_ITEM_IMAGE, MENU_ITEM_NORMAL, MENU_ITEM_RADIOBUTTON, MENU_ITEM_WORKSPACE_LIST, META_ACCEL_LABEL, meta_accel_label_new_with_mnemonic(), meta_accel_label_set_accelerator(), meta_core_get_menu_accelerator(), NULL, _MenuItem::op, _MenuItem::stock_id, TRUE, and _MenuItem::type.
Referenced by meta_window_menu_new().
| 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 | |||
| ) |
Definition at line 323 of file menu.c.
References activate_cb(), _MetaWindowMenu::client_xwindow, _MetaWindowMenu::data, FALSE, _MetaWindowMenu::frames, _MetaWindowMenu::func, get_workspace_name_with_accel(), _MetaWindowMenu::insensitive, _MenuItem::label, label, _MenuData::menu, _MetaWindowMenu::menu, menu_closed(), menu_item_new(), MENU_ITEM_NORMAL, MENU_ITEM_SEPARATOR, MENU_ITEM_WORKSPACE_LIST, meta_core_get_menu_accelerator(), META_MENU_OP_STICK, META_MENU_OP_UNSTICK, META_MENU_OP_WORKSPACES, N_, NULL, _MenuData::op, _MenuItem::op, _MetaWindowMenu::ops, screen, and _MenuItem::type.
Referenced by meta_ui_window_menu_new().
| 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().
1.5.5