menu.h

Go to the documentation of this file.
00001 /* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
00002 
00003 /* Metacity window menu */
00004 
00005 /* 
00006  * Copyright (C) 2001 Havoc Pennington
00007  * 
00008  * This program is free software; you can redistribute it and/or
00009  * modify it under the terms of the GNU General Public License as
00010  * published by the Free Software Foundation; either version 2 of the
00011  * License, or (at your option) any later version.
00012  *
00013  * This program is distributed in the hope that it will be useful, but
00014  * WITHOUT ANY WARRANTY; without even the implied warranty of
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00016  * General Public License for more details.
00017  * 
00018  * You should have received a copy of the GNU General Public License
00019  * along with this program; if not, write to the Free Software
00020  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
00021  * 02111-1307, USA.
00022  */
00023 
00024 #ifndef META_MENU_H
00025 #define META_MENU_H
00026 
00027 #include <gtk/gtk.h>
00028 #include "frames.h"
00029 
00030 /* Stock icons */
00031 #define METACITY_STOCK_DELETE   "metacity-delete"
00032 #define METACITY_STOCK_MINIMIZE "metacity-minimize"
00033 #define METACITY_STOCK_MAXIMIZE "metacity-maximize"
00034 
00035 struct _MetaWindowMenu
00036 {
00037   MetaFrames *frames;
00038   Window client_xwindow;
00039   GtkWidget *menu;
00040   MetaWindowMenuFunc func;
00041   gpointer data;
00042   MetaMenuOp ops;
00043   MetaMenuOp insensitive;
00044 };
00045 
00046 MetaWindowMenu* meta_window_menu_new      (MetaFrames         *frames,
00047                                            MetaMenuOp          ops,
00048                                            MetaMenuOp          insensitive,
00049                                            Window              client_xwindow,
00050                                            unsigned long       active_workspace,
00051                                            int                 n_workspaces,
00052                                            MetaWindowMenuFunc  func,
00053                                            gpointer            data);
00054 void            meta_window_menu_popup    (MetaWindowMenu     *menu,
00055                                            int                 root_x,
00056                                            int                 root_y,
00057                                            int                 button,
00058                                            guint32             timestamp);
00059 void            meta_window_menu_free     (MetaWindowMenu     *menu);
00060 
00061 
00062 #endif

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