aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc/e-popup-menu.h
blob: ed54a632a57aa713a94247f69a0a2f2ed2cf72df (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
#ifndef E_POPUP_MENU_H
#define E_POPUP_MENU_H

#include <gtk/gtkwidget.h>

typedef struct {
    char const * const name;
    char const * const pixname;
    void         (*fn)(GtkWidget *widget, void *closure);
    int  disable_mask;
} EPopupMenu;

GtkMenu *e_popup_menu_create  (EPopupMenu     *menu_list,
                   int             disable_mask,
                   int             hide_mask,
                   void           *closure);

void     e_popup_menu_run     (EPopupMenu     *menu_list,
                   GdkEventButton *event,
                   int             disable_mask,
                   int             hide_mask,
                   void           *closure);

#endif /* E_POPUP_MENU_H */