gtkcellviewmenuitem.h

00001 /* gtkcellviewmenuitem.h
00002  * Copyright (C) 2003  Kristian Rietveld <kris@gtk.org>
00003  *
00004  * This library is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU Library General Public
00006  * License as published by the Free Software Foundation; either
00007  * version 2 of the License, 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  * Library General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU Library General Public
00015  * License along with this library; if not, write to the
00016  * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017  * Boston, MA 02111-1301, USA.
00018  */
00019 
00020 #ifndef __GTK_CELL_VIEW_MENU_ITEM_H__
00021 #define __GTK_CELL_VIEW_MENU_ITEM_H__
00022 
00023 #include <gtk/gtkmenuitem.h>
00024 #include <gtk/gtktreemodel.h>
00025 
00026 G_BEGIN_DECLS
00027 
00028 #define GTK_TYPE_CELL_VIEW_MENU_ITEM              (gtk_cell_view_menu_item_get_type ())
00029 #define GTK_CELL_VIEW_MENU_ITEM(obj)              (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CELL_VIEW_MENU_ITEM, GtkCellViewMenuItem))
00030 #define GTK_CELL_VIEW_MENU_ITEM_CLASS(klass)      (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_CELL_VIEW_MENU_ITEM, GtkCellViewMenuItemClass))
00031 #define GTK_IS_CELL_VIEW_MENU_ITEM(obj)           (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_CELL_VIEW_MENU_ITEM))
00032 #define GTK_IS_CELL_VIEW_MENU_ITEM_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_CELL_VIEW_MENU_ITEM))
00033 #define GTK_CELL_VIEW_MENU_ITEM_GET_CLASS(obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_CELL_VIEW_MENU_ITEM, GtkCellViewMenuItemClass))
00034 
00035 
00036 typedef struct _GtkCellViewMenuItem        GtkCellViewMenuItem;
00037 typedef struct _GtkCellViewMenuItemClass   GtkCellViewMenuItemClass;
00038 typedef struct _GtkCellViewMenuItemPrivate GtkCellViewMenuItemPrivate;
00039 
00040 struct _GtkCellViewMenuItem
00041 {
00042   GtkMenuItem parent_instance;
00043 
00044   /*< private >*/
00045   GtkCellViewMenuItemPrivate *priv;
00046 };
00047 
00048 struct _GtkCellViewMenuItemClass
00049 {
00050   GtkMenuItemClass parent_class;
00051 };
00052 
00053 
00054 GType      gtk_cell_view_menu_item_get_type        (void);
00055 GtkWidget *gtk_cell_view_menu_item_new             (void);
00056 
00057 GtkWidget *gtk_cell_view_menu_item_new_with_pixbuf (GdkPixbuf   *pixbuf);
00058 GtkWidget *gtk_cell_view_menu_item_new_with_text   (const gchar *text);
00059 GtkWidget *gtk_cell_view_menu_item_new_with_markup (const gchar *markup);
00060 
00061 GtkWidget *gtk_cell_view_menu_item_new_from_model  (GtkTreeModel *model,
00062                                                     GtkTreePath  *path);
00063 
00064 
00065 G_END_DECLS
00066 
00067 #endif /* __GTK_CELL_VIEW_MENU_ITEM_H__ */