00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef __HILDON_THUMB_MENU_ITEM_H__
00025 #define __HILDON_THUMB_MENU_ITEM_H__
00026
00027
00028 #include <gdk/gdk.h>
00029 #include <gtk/gtkimagemenuitem.h>
00030
00031 G_BEGIN_DECLS
00032
00033
00034 #define THUMB_BUTTON_ID 8
00035
00036 #define HILDON_TYPE_THUMB_MENU_ITEM (hildon_thumb_menu_item_get_type ())
00037 #define HILDON_THUMB_MENU_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), HILDON_TYPE_THUMB_MENU_ITEM, HildonThumbMenuItem))
00038 #define HILDON_THUMB_MENU_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), HILDON_TYPE_THUMB_MENU_ITEM, HildonThumbMenuItemClass))
00039 #define HILDON_IS_THUMB_MENU_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), HILDON_TYPE_THUMB_MENU_ITEM))
00040 #define HILDON_IS_THUMB_MENU_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), HILDON_TYPE_THUMB_MENU_ITEM))
00041 #define HILDON_THUMB_MENU_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), HILDON_TYPE_THUMB_MENU_ITEM, HildonThumbMenuItemClass))
00042
00043
00044 typedef struct _HildonThumbMenuItem HildonThumbMenuItem;
00045 typedef struct _HildonThumbMenuItemClass HildonThumbMenuItemClass;
00046
00047 struct _HildonThumbMenuItem
00048 {
00049 GtkImageMenuItem menu_item;
00050 };
00051
00052 struct _HildonThumbMenuItemClass
00053 {
00054 GtkImageMenuItemClass parent_class;
00055 };
00056
00057
00058 GType hildon_thumb_menu_item_get_type (void) G_GNUC_CONST;
00059 GtkWidget* hildon_thumb_menu_item_new (void);
00060 GtkWidget* hildon_thumb_menu_item_new_with_labels (const gchar *label,
00061 const gchar *thumb_label,
00062 const gchar *comment);
00063 GtkWidget* hildon_thumb_menu_item_new_with_mnemonic (const gchar *label,
00064 const gchar *thumb_label,
00065 const gchar *comment);
00066 void hildon_thumb_menu_item_set_images (HildonThumbMenuItem *thumb_menu_item,
00067 GtkWidget *image,
00068 GtkWidget *thumb_image);
00069 void hildon_menu_set_thumb_mode (GtkMenu *menu, gboolean thumb_mode);
00070
00071 G_END_DECLS
00072
00073 #endif