|
marco 1.29.1
Window manager
|
#include <config.h>#include <glib/gi18n-lib.h>#include <libmate-desktop/mate-image-menu-item.h>#include <gdk/gdkx.h>#include <stdio.h>#include <string.h>#include "menu.h"#include "main.h"#include "util.h"#include "core.h"#include "metaaccellabel.h"#include "ui.h"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 | 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 |
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 |
References _, meta_core_get_workspace_name_with_index(), and NULL.
Referenced by meta_window_menu_new().
|
static |
References _MetaWindowMenu::client_xwindow, _MetaWindowMenu::data, _MetaWindowMenu::frames, _MetaWindowMenu::func, and meta_frames_notify_menu_hide().
Referenced by meta_window_menu_new().
|
static |
References _, _MenuItem::checked, _MenuItem::label, MATE_IMAGE_MENU_ITEM, mate_image_menu_item_new(), mate_image_menu_item_set_image(), 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 | ) |
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 | ||
| ) |
References activate_cb(), _MetaWindowMenu::client_xwindow, _MetaWindowMenu::data, FALSE, _MetaWindowMenu::frames, _MetaWindowMenu::func, get_workspace_name_with_accel(), _MetaWindowMenu::insensitive, label, _MenuItem::label, _MenuData::menu, _MetaWindowMenu::menu, menu_closed(), menu_item_new(), MENU_ITEM_NORMAL, MENU_ITEM_SEPARATOR, MENU_ITEM_WORKSPACE_LIST, menuitems, meta_core_get_menu_accelerator(), META_MENU_OP_STICK, META_MENU_OP_UNSTICK, META_MENU_OP_WORKSPACES, NULL, _MenuItem::op, _MenuData::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 | ||
| ) |
References _MetaWindowMenu::frames, _MetaWindowMenu::menu, META_UI_DIRECTION_RTL, meta_ui_get_direction(), meta_warning(), and NULL.
Referenced by meta_ui_window_menu_popup().
|
static |
Referenced by meta_window_menu_new().