annotate src/gtkcellviewmenuitem.h @ 12301:39fca2edf7da

[gaim-migrate @ 14605] I only caught this as I was committing, and besides I forgot to mention what sadrul's patch did. It puts the emblem for the active status on the accounts in the Accounts menu (he put them in the Remove menu as well but that felt wrong to me.) committer: Tailor Script <tailor@pidgin.im>
author Etan Reisner <pidgin@unreliablesource.net>
date Sat, 03 Dec 2005 06:50:41 +0000
parents a7486f12e56f
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
10703
a7486f12e56f [gaim-migrate @ 12286]
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
1 /* gtkcellviewmenuitem.h
a7486f12e56f [gaim-migrate @ 12286]
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
2 * Copyright (C) 2003 Kristian Rietveld <kris@gtk.org>
a7486f12e56f [gaim-migrate @ 12286]
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
3 *
a7486f12e56f [gaim-migrate @ 12286]
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
4 * This library is free software; you can redistribute it and/or
a7486f12e56f [gaim-migrate @ 12286]
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
5 * modify it under the terms of the GNU Library General Public
a7486f12e56f [gaim-migrate @ 12286]
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
6 * License as published by the Free Software Foundation; either
a7486f12e56f [gaim-migrate @ 12286]
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
7 * version 2 of the License, or (at your option) any later version.
a7486f12e56f [gaim-migrate @ 12286]
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
8 *
a7486f12e56f [gaim-migrate @ 12286]
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
9 * This library is distributed in the hope that it will be useful,
a7486f12e56f [gaim-migrate @ 12286]
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
a7486f12e56f [gaim-migrate @ 12286]
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
a7486f12e56f [gaim-migrate @ 12286]
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
12 * Library General Public License for more details.
a7486f12e56f [gaim-migrate @ 12286]
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
13 *
a7486f12e56f [gaim-migrate @ 12286]
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
14 * You should have received a copy of the GNU Library General Public
a7486f12e56f [gaim-migrate @ 12286]
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
15 * License along with this library; if not, write to the
a7486f12e56f [gaim-migrate @ 12286]
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
16 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
a7486f12e56f [gaim-migrate @ 12286]
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
17 * Boston, MA 02111-1307, USA.
a7486f12e56f [gaim-migrate @ 12286]
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
18 */
a7486f12e56f [gaim-migrate @ 12286]
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
19
a7486f12e56f [gaim-migrate @ 12286]
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
20 #ifndef __GTK_CELL_VIEW_MENU_ITEM_H__
a7486f12e56f [gaim-migrate @ 12286]
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
21 #define __GTK_CELL_VIEW_MENU_ITEM_H__
a7486f12e56f [gaim-migrate @ 12286]
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
22
a7486f12e56f [gaim-migrate @ 12286]
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
23 #include <gtk/gtkmenuitem.h>
a7486f12e56f [gaim-migrate @ 12286]
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
24 #include <gtk/gtktreemodel.h>
a7486f12e56f [gaim-migrate @ 12286]
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
25
a7486f12e56f [gaim-migrate @ 12286]
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
26 G_BEGIN_DECLS
a7486f12e56f [gaim-migrate @ 12286]
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
27
a7486f12e56f [gaim-migrate @ 12286]
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
28 #define GTK_TYPE_CELL_VIEW_MENU_ITEM (gtk_cell_view_menu_item_get_type ())
a7486f12e56f [gaim-migrate @ 12286]
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
29 #define GTK_CELL_VIEW_MENU_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CELL_VIEW_MENU_ITEM, GtkCellViewMenuItem))
a7486f12e56f [gaim-migrate @ 12286]
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
30 #define GTK_CELL_VIEW_MENU_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_CELL_VIEW_MENU_ITEM, GtkCellViewMenuItemClass))
a7486f12e56f [gaim-migrate @ 12286]
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
31 #define GTK_IS_CELL_VIEW_MENU_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_CELL_VIEW_MENU_ITEM))
a7486f12e56f [gaim-migrate @ 12286]
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
32 #define GTK_IS_CELL_VIEW_MENU_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_CELL_VIEW_MENU_ITEM))
a7486f12e56f [gaim-migrate @ 12286]
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
33 #define GTK_CELL_VIEW_MENU_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_CELL_VIEW_MENU_ITEM, GtkCellViewMenuItemClass))
a7486f12e56f [gaim-migrate @ 12286]
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
34
a7486f12e56f [gaim-migrate @ 12286]
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
35
a7486f12e56f [gaim-migrate @ 12286]
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
36 typedef struct _GtkCellViewMenuItem GtkCellViewMenuItem;
a7486f12e56f [gaim-migrate @ 12286]
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
37 typedef struct _GtkCellViewMenuItemClass GtkCellViewMenuItemClass;
a7486f12e56f [gaim-migrate @ 12286]
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
38 typedef struct _GtkCellViewMenuItemPrivate GtkCellViewMenuItemPrivate;
a7486f12e56f [gaim-migrate @ 12286]
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
39
a7486f12e56f [gaim-migrate @ 12286]
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
40 struct _GtkCellViewMenuItem
a7486f12e56f [gaim-migrate @ 12286]
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
41 {
a7486f12e56f [gaim-migrate @ 12286]
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
42 GtkMenuItem parent_instance;
a7486f12e56f [gaim-migrate @ 12286]
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
43
a7486f12e56f [gaim-migrate @ 12286]
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
44 /*< private >*/
a7486f12e56f [gaim-migrate @ 12286]
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
45 GtkCellViewMenuItemPrivate *priv;
a7486f12e56f [gaim-migrate @ 12286]
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
46 };
a7486f12e56f [gaim-migrate @ 12286]
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
47
a7486f12e56f [gaim-migrate @ 12286]
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
48 struct _GtkCellViewMenuItemClass
a7486f12e56f [gaim-migrate @ 12286]
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
49 {
a7486f12e56f [gaim-migrate @ 12286]
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
50 GtkMenuItemClass parent_class;
a7486f12e56f [gaim-migrate @ 12286]
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
51 };
a7486f12e56f [gaim-migrate @ 12286]
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
52
a7486f12e56f [gaim-migrate @ 12286]
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
53
a7486f12e56f [gaim-migrate @ 12286]
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
54 GType gtk_cell_view_menu_item_get_type (void);
a7486f12e56f [gaim-migrate @ 12286]
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
55 GtkWidget *gtk_cell_view_menu_item_new (void);
a7486f12e56f [gaim-migrate @ 12286]
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
56
a7486f12e56f [gaim-migrate @ 12286]
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
57 GtkWidget *gtk_cell_view_menu_item_new_with_pixbuf (GdkPixbuf *pixbuf);
a7486f12e56f [gaim-migrate @ 12286]
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
58 GtkWidget *gtk_cell_view_menu_item_new_with_text (const gchar *text);
a7486f12e56f [gaim-migrate @ 12286]
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
59 GtkWidget *gtk_cell_view_menu_item_new_with_markup (const gchar *markup);
a7486f12e56f [gaim-migrate @ 12286]
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
60
a7486f12e56f [gaim-migrate @ 12286]
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
61 GtkWidget *gtk_cell_view_menu_item_new_from_model (GtkTreeModel *model,
a7486f12e56f [gaim-migrate @ 12286]
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
62 GtkTreePath *path);
a7486f12e56f [gaim-migrate @ 12286]
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
63
a7486f12e56f [gaim-migrate @ 12286]
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
64
a7486f12e56f [gaim-migrate @ 12286]
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
65 G_END_DECLS
a7486f12e56f [gaim-migrate @ 12286]
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
66
a7486f12e56f [gaim-migrate @ 12286]
Stu Tomlinson <stu@nosnilmot.com>
parents:
diff changeset
67 #endif /* __GTK_CELL_VIEW_MENU_ITEM_H__ */