Back to index

indicator-appmenu  12.10.0
gtkmodelmenuitem.h
Go to the documentation of this file.
00001 /*
00002  * Copyright © 2011 Canonical Limited
00003  *
00004  * This library is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU Lesser General Public
00006  * License as published by the Free Software Foundation; either
00007  * version 2 of the licence, or (at your option) any later version.
00008  *
00009  * This library is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012  * Lesser General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU Lesser General Public
00015  * License along with this library. If not, see <http://www.gnu.org/licenses/>.
00016  *
00017  * Author: Ryan Lortie <desrt@desrt.ca>
00018  */
00019 
00020 #ifndef __GTK_MODEL_MENU_ITEM_H__
00021 #define __GTK_MODEL_MENU_ITEM_H__
00022 
00023 #include <gtk/gtk.h>
00024 #include "gactionobservable.h"
00025 
00026 #define GTK_TYPE_MODEL_MENU_ITEM                            (gtk_model_menu_item_get_type ())
00027 #define GTK_MODEL_MENU_ITEM(inst)                           (G_TYPE_CHECK_INSTANCE_CAST ((inst),                      \
00028                                                              GTK_TYPE_MODEL_MENU_ITEM, GtkModelMenuItem))
00029 #define GTK_IS_MODEL_MENU_ITEM(inst)                        (G_TYPE_CHECK_INSTANCE_TYPE ((inst),                      \
00030                                                              GTK_TYPE_MODEL_MENU_ITEM))
00031 
00032 typedef struct _GtkModelMenuItem                            GtkModelMenuItem;
00033 
00034 G_GNUC_INTERNAL
00035 GType                   gtk_model_menu_item_get_type                    (void) G_GNUC_CONST;
00036 
00037 G_GNUC_INTERNAL
00038 GtkMenuItem *           gtk_model_menu_item_new                         (GMenuModel        *model,
00039                                                                          gint               item_index,
00040                                                                          GActionObservable *actions,
00041                                                                          GtkAccelGroup     *accels);
00042 
00043 #endif /* __GTK_MODEL_MENU_ITEM_H__ */