Main Page | Directories | File List | File Members

hildon-thumb-menu-item.h

00001 /*
00002  * This file is part of maemo-af-desktop
00003  *
00004  * Copyright (C) 2006 Nokia Corporation.
00005  *
00006  * Contact: Karoliina Salminen <karoliina.t.salminen@nokia.com>
00007  *
00008  * This library is free software; you can redistribute it and/or
00009  * modify it under the terms of the GNU Lesser General Public License
00010  * version 2.1 as published by the Free Software Foundation.
00011  *
00012  * This library is distributed in the hope that it will be useful, but
00013  * WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
00015  * Lesser General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU Lesser General Public
00018  * License along with this library; if not, write to the Free Software
00019  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
00020  * 02110-1301 USA
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 /* The thumb press is indicated by button id 8 */
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 /* __HILDON_THUMB_MENU_ITEM_H__ */

Generated on Thu Dec 21 11:26:52 2006 for maemo-af-desktop-documentation by  doxygen 1.4.2