~ubuntu-branches/ubuntu/precise/indicator-me/precise

« back to all changes in this revision

Viewing changes to src/about-me-menu-item.h

  • Committer: Package Import Robot
  • Author(s): Evgeni Golov
  • Date: 2011-06-04 22:45:27 UTC
  • mfrom: (12.1.1 sid)
  • Revision ID: package-import@ubuntu.com-20110604224527-jt4zuynua7zuwi2w
Tags: 0.2.19-1
* Merge from Ubuntu.
  Closes: #629249
* Standards-Version: 3.9.2
* Revert "recommends unity rather than indicator-applet-session" as
  Debian does not have Unity yet.
* Improve debian/copyright to match DEP5.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- Mode: C; indent-tabs-mode: nil; c-basic-offset: 2; tab-width: 2 -*- */
 
2
/*
 
3
 * Copyright 2010 Canonical, Ltd.
 
4
 *
 
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:
 
7
 *
 
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.
 
12
 *
 
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.
 
18
 *
 
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/>
 
22
 *
 
23
 * Authors:
 
24
 *    David Barth <david.barth@canonical.com>
 
25
 *    Cody Russell <crussell@canonical.com>
 
26
 */
 
27
 
 
28
#ifndef __ABOUT_ME_MENU_ITEM_H__
 
29
#define __ABOUT_ME_MENU_ITEM_H__
 
30
 
 
31
#include <gtk/gtkmenuitem.h>
 
32
 
 
33
G_BEGIN_DECLS
 
34
 
 
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))
 
41
 
 
42
 
 
43
typedef struct _AboutMeMenuItem        AboutMeMenuItem;
 
44
typedef struct _AboutMeMenuItemClass   AboutMeMenuItemClass;
 
45
typedef struct _AboutMeMenuItemPrivate AboutMeMenuItemPrivate;
 
46
 
 
47
struct _AboutMeMenuItem
 
48
{
 
49
        GtkMenuItem parent_instance;
 
50
 
 
51
        AboutMeMenuItemPrivate *priv;
 
52
};
 
53
 
 
54
struct _AboutMeMenuItemClass
 
55
{
 
56
        GtkMenuItemClass parent_class;
 
57
};
 
58
 
 
59
 
 
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);
 
63
 
 
64
G_END_DECLS
 
65
 
 
66
#endif /* __ABOUT_ME_MENU_ITEM_H__ */