1
/* -*- Mode: C; indent-tabs-mode: nil; c-basic-offset: 2; tab-width: 2 -*- */
3
* Copyright 2010 Canonical, Ltd.
5
* This program is free software: you can redistribute it and/or modify it
6
* under the terms of either or both of the following licenses:
8
* 1) the GNU Lesser General Public License version 3, as published by the
9
* Free Software Foundation; and/or
10
* 2) the GNU Lesser General Public License version 2.1, as published by
11
* the Free Software Foundation.
13
* This program is distributed in the hope that it will be useful, but
14
* WITHOUT ANY WARRANTY; without even the implied warranties of
15
* MERCHANTABILITY, SATISFACTORY QUALITY or FITNESS FOR A PARTICULAR
16
* PURPOSE. See the applicable version of the GNU Lesser General Public
17
* License for more details.
19
* You should have received a copy of both the GNU Lesser General Public
20
* License version 3 and version 2.1 along with this program. If not, see
21
* <http://www.gnu.org/licenses/>
24
* David Barth <david.barth@canonical.com>
25
* Cody Russell <crussell@canonical.com>
28
#ifndef __ABOUT_ME_MENU_ITEM_H__
29
#define __ABOUT_ME_MENU_ITEM_H__
31
#include <gtk/gtkmenuitem.h>
35
#define ABOUT_ME_TYPE_MENU_ITEM (about_me_menu_item_get_type ())
36
#define ABOUT_ME_MENU_ITEM(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), ABOUT_ME_TYPE_MENU_ITEM, AboutMeMenuItem))
37
#define ABOUT_ME_MENU_ITEM_CLASS(c) (G_TYPE_CHECK_CLASS_CAST ((c), ABOUT_ME_TYPE_MENU_ITEM, AboutMeMenuItemClass))
38
#define ABOUT_IS_ME_MENU_ITEM(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), ABOUT_ME_TYPE_MENU_ITEM))
39
#define ABOUT_IS_ME_MENU_ITEM_CLASS(c) (G_TYPE_CHECK_CLASS_TYPE ((c), ABOUT_ME_TYPE_MENU_ITEM))
40
#define ABOUT_ME_MENU_ITEM_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), ABOUT_ME_TYPE_MENU_ITEM, AboutMeMenuItemClass))
43
typedef struct _AboutMeMenuItem AboutMeMenuItem;
44
typedef struct _AboutMeMenuItemClass AboutMeMenuItemClass;
45
typedef struct _AboutMeMenuItemPrivate AboutMeMenuItemPrivate;
47
struct _AboutMeMenuItem
49
GtkMenuItem parent_instance;
51
AboutMeMenuItemPrivate *priv;
54
struct _AboutMeMenuItemClass
56
GtkMenuItemClass parent_class;
60
GType about_me_menu_item_get_type (void) G_GNUC_CONST;
61
GtkWidget *about_me_menu_item_new (const gchar *name);
62
gboolean about_me_menu_item_load_avatar (AboutMeMenuItem *self, const gchar *file);
66
#endif /* __ABOUT_ME_MENU_ITEM_H__ */