~ubuntu-branches/ubuntu/quantal/indicator-messages/quantal

« back to all changes in this revision

Viewing changes to src/ido-detail-label.h

  • Committer: Package Import Robot
  • Author(s): Didier Roche
  • Date: 2012-09-19 10:23:43 UTC
  • mfrom: (1.1.41)
  • Revision ID: package-import@ubuntu.com-20120919102343-10c2szxufrej5q7x
Tags: 12.10.3-0ubuntu1
* New upstream release.
  - hide indicator when no application shows in the menu (lp: #661059)
  - remove apps as soon as they are uninstalled (lp: #864545)
  - make generated .gir compatible with vala (lp: #104496)
  - draw counts as lozenges (lp: #1046331)
  - show separators (lp: #1048245)
  - show chat presence in the panel (lp: #859905)
  - improve documentation
* debian/control:
  - build-dep on latest libgtk-3-dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright 2012 Canonical Ltd.
 
3
 *
 
4
 * This program is free software: you can redistribute it and/or modify it
 
5
 * under the terms of the GNU General Public License version 3, as published
 
6
 * by the Free Software Foundation.
 
7
 *
 
8
 * This program is distributed in the hope that it will be useful, but
 
9
 * WITHOUT ANY WARRANTY; without even the implied warranties of
 
10
 * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
 
11
 * PURPOSE.  See the GNU General Public License for more details.
 
12
 *
 
13
 * You should have received a copy of the GNU General Public License along
 
14
 * with this program.  If not, see <http://www.gnu.org/licenses/>.
 
15
 *
 
16
 * Authors:
 
17
 *     Lars Uebernickel <lars.uebernickel@canonical.com>
 
18
 */
 
19
 
 
20
#ifndef __IDO_DETAIL_LABEL_H__
 
21
#define __IDO_DETAIL_LABEL_H__
 
22
 
 
23
#include <gtk/gtk.h>
 
24
 
 
25
#define IDO_TYPE_DETAIL_LABEL            (ido_detail_label_get_type())
 
26
#define IDO_DETAIL_LABEL(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), IDO_TYPE_DETAIL_LABEL, IdoDetailLabel))
 
27
#define IDO_DETAIL_LABEL_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), IDO_TYPE_DETAIL_LABEL, IdoDetailLabelClass))
 
28
#define IDO_IS_DETAIL_LABEL(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), IDO_TYPE_DETAIL_LABEL))
 
29
#define IDO_IS_DETAIL_LABEL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), IDO_TYPE_DETAIL_LABEL))
 
30
#define IDO_DETAIL_LABEL_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), IDO_TYPE_DETAIL_LABEL, IdoDetailLabelClass))
 
31
 
 
32
typedef struct _IdoDetailLabel        IdoDetailLabel;
 
33
typedef struct _IdoDetailLabelClass   IdoDetailLabelClass;
 
34
typedef struct _IdoDetailLabelPrivate IdoDetailLabelPrivate;
 
35
 
 
36
struct _IdoDetailLabel
 
37
{
 
38
  GtkWidget parent;
 
39
  IdoDetailLabelPrivate *priv;
 
40
};
 
41
 
 
42
struct _IdoDetailLabelClass
 
43
{
 
44
  GtkWidgetClass parent_class;
 
45
};
 
46
 
 
47
GType         ido_detail_label_get_type  (void) G_GNUC_CONST;
 
48
 
 
49
GtkWidget *   ido_detail_label_new       (const gchar *str);
 
50
 
 
51
const gchar * ido_detail_label_get_text  (IdoDetailLabel *label);
 
52
 
 
53
void          ido_detail_label_set_text  (IdoDetailLabel *label,
 
54
                                          const gchar    *text);
 
55
 
 
56
void          ido_detail_label_set_count (IdoDetailLabel *label,
 
57
                                          gint            count);
 
58
 
 
59
#endif