Copy purify.fvwm2rc to /tmp - add instructions in README.
[fvwm.git] / modules / FvwmGtk / gtkpixmapmenuitem.h
blob8c2fa6d57b84c7c483764141256e425e33e54751
1 /* -*-c-*- */
2 /* Author: Dietmar Maurer <dm@vlsivie.tuwien.ac.at> */
3 /* Description:
5 This widget works like a normal menu_item, but you can insert a
6 arbitrary widget (most often a pixmap widget), which is displayed
7 at the left side. The advantage is that indentation is handled the
8 same way as GTK does.
10 (i.e if you create a menu with a gtk_check_menu_item, all normal
11 menu_items are automatically indented by GTK - so if you use a normal
12 menu_item to display pixmaps at the left side, the pixmaps will be
13 indented, which is not what you want. This widget solves the problem)
17 #ifndef __GTK_MENU_PIXMAP_ITEM_H__
18 #define __GTK_MENU_PIXMAP_ITEM_H__
21 #include <gtk/gtkpixmap.h>
22 #include <gtk/gtkmenuitem.h>
25 #ifdef __cplusplus
26 extern "C" {
27 #endif /* __cplusplus */
30 #define GTK_TYPE_PIXMAP_MENU_ITEM (gtk_pixmap_menu_item_get_type ())
31 #define GTK_PIXMAP_MENU_ITEM(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_PIXMAP_MENU_ITEM, GtkPixmapMenuItem))
32 #define GTK_PIXMAP_MENU_ITEM_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_PIXMAP_MENU_ITEM, GtkPixmapMenuItemClass))
33 #define GTK_IS_PIXMAP_MENU_ITEM(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_PIXMAP_MENU_ITEM))
34 #define GTK_IS_PIXMAP_MENU_ITEM_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_PIXMAP_MENU_ITEM))
37 typedef struct _GtkPixmapMenuItem GtkPixmapMenuItem;
38 typedef struct _GtkPixmapMenuItemClass GtkPixmapMenuItemClass;
40 struct _GtkPixmapMenuItem
42 GtkMenuItem menu_item;
44 GtkWidget *pixmap;
47 struct _GtkPixmapMenuItemClass
49 GtkMenuItemClass parent_class;
53 GtkType gtk_pixmap_menu_item_get_type (void);
54 GtkWidget* gtk_pixmap_menu_item_new (void);
55 void gtk_pixmap_menu_item_set_pixmap (GtkPixmapMenuItem *menu_item,
56 GtkWidget *pixmap);
58 #ifdef __cplusplus
60 #endif /* __cplusplus */
63 #endif /* __GTK_PIXMAP_MENU_ITEM_H__ */