Main Page | Directories | File List | File Members

hn-app-menu-item.h

Go to the documentation of this file.
00001 /* hn-app-menu-item.h
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 
00032 #ifndef HN_APP_MENU_ITEM_H
00033 #define HN_APP_MENU_ITEM_H
00034 
00035 #include <gtk/gtkimagemenuitem.h>
00036 #include "hn-wm-types.h"
00037 
00038 G_BEGIN_DECLS
00039 
00040 #define HN_TYPE_APP_MENU_ITEM        (hn_app_menu_item_get_type ())
00041 #define HN_APP_MENU_ITEM(obj)        (G_TYPE_CHECK_INSTANCE_CAST ((obj), HN_TYPE_APP_MENU_ITEM, HNAppMenuItem))
00042 #define HN_IS_APP_MENU_ITEM(obj)     (G_TYPE_CHECK_INSTANCE_TYPE ((obj), HN_TYPE_APP_MENU_ITEM))
00043 #define HN_APP_MENU_ITEM_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), HN_TYPE_APP_MENU_ITEM, HNAppMenuItemClass))
00044 #define HN_IS_APP_MENU_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), HN_TYPE_APP_MENU_ITEM))
00045 #define HN_APP_MENU_ITEM_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), HN_TYPE_APP_MENU_ITEM, HNAppMenuItemClass))
00046 
00047 typedef struct _HNAppMenuItem        HNAppMenuItem;
00048 typedef struct _HNAppMenuItemPrivate HNAppMenuItemPrivate;
00049 typedef struct _HNAppMenuItemClass   HNAppMenuItemClass;
00050 
00051 struct _HNAppMenuItem
00052 {
00053   GtkImageMenuItem parent_instance;
00054 
00055   HNAppMenuItemPrivate *priv;
00056 };
00057 
00058 struct _HNAppMenuItemClass
00059 {
00060   GtkImageMenuItemClass parent_class;
00061 
00062   GdkPixbuf *close_button;
00063   GdkPixbuf *thumb_close_button;
00064 };
00065 
00066 GType        hn_app_menu_item_get_type        (void) G_GNUC_CONST;
00067 
00068 GtkWidget *  hn_app_menu_item_new             (HNEntryInfo   *info,
00069                                                gboolean       show_close,
00070                                                gboolean       thumbable);
00071 
00072 void         hn_app_menu_item_set_entry_info  (HNAppMenuItem *menuitem,
00073                            HNEntryInfo   *info);
00074 HNEntryInfo *hn_app_menu_item_get_entry_info  (HNAppMenuItem *menuitem);
00075 void         hn_app_menu_item_set_is_blinking (HNAppMenuItem *menuitem,
00076                            gboolean       is_blinking);
00077 gboolean     hn_app_menu_item_get_is_blinking (HNAppMenuItem *menuitem);
00078 
00079 G_END_DECLS
00080 
00081 #endif /* HN_APP_MENU_ITEM_H */

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