summaryrefslogtreecommitdiff
path: root/src/menu.h
diff options
context:
space:
mode:
authorrhp <rhp>2001-06-23 05:49:35 +0000
committerrhp <rhp>2001-06-23 05:49:35 +0000
commitbf64e719a1fea9e99b737b11771a41272c2e881e (patch)
treef2536630b810b36d7905f78a4720523df8c7b328 /src/menu.h
parent7ecf21af703d22f2975d7926e71fb453176e4271 (diff)
downloadmetacity-bf64e719a1fea9e99b737b11771a41272c2e881e.tar.gz
metacity-bf64e719a1fea9e99b737b11771a41272c2e881e.tar.bz2
...
Diffstat (limited to 'src/menu.h')
-rw-r--r--src/menu.h33
1 files changed, 25 insertions, 8 deletions
diff --git a/src/menu.h b/src/menu.h
index 30a096f..7fb5dee 100644
--- a/src/menu.h
+++ b/src/menu.h
@@ -25,14 +25,31 @@
#include <gtk/gtk.h>
#include "frames.h"
-void meta_window_menu_show (MetaFrames *frames,
- MetaUIFrame *frame,
- int root_x,
- int root_y,
- int button,
- guint32 timestamp);
-
-
+struct _MetaWindowMenu
+{
+ MetaFrames *frames;
+ Window client_xwindow;
+ GtkWidget *menu;
+ MetaWindowMenuFunc func;
+ gpointer data;
+ MetaMenuOp ops;
+ MetaMenuOp insensitive;
+};
+
+MetaWindowMenu* meta_window_menu_new (MetaFrames *frames,
+ MetaMenuOp ops,
+ MetaMenuOp insensitive,
+ Window client_xwindow,
+ int 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);
#endif