~ubuntu-branches/ubuntu/utopic/libgnomekbd/utopic

« back to all changes in this revision

Viewing changes to libgnomekbd/gkbd-status.h

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher, Chris Coulson
  • Date: 2010-01-18 11:58:48 UTC
  • mfrom: (1.1.21 upstream)
  • Revision ID: james.westby@ubuntu.com-20100118115848-69vv268ydkfz1gud
Tags: 2.29.5-0ubuntu1
* debian/rules:
  - updated shlibs versions

[ Chris Coulson ]
* New upstream version (LP: #508216)
  - GkbdIndicator rendering fixed.
  - GkbdStatus notification icon added.
* debian/control:
  - Bump libxklavier-dev build dep to >= 5.0
* Refreshed 99_lt_main_as-needed.patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (C) 2009 Sergey V. Udaltsov <svu@gnome.org>
 
3
 *
 
4
 * This library is free software; you can redistribute it and/or
 
5
 * modify it under the terms of the GNU Lesser General Public
 
6
 * License as published by the Free Software Foundation; either
 
7
 * version 2 of the License, or (at your option) any later version.
 
8
 *
 
9
 * This library is distributed in the hope that it will be useful,
 
10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
12
 * Lesser General Public License for more details.
 
13
 *
 
14
 * You should have received a copy of the GNU Lesser General Public
 
15
 * License along with this library; if not, write to the
 
16
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 
17
 * Boston, MA 02111-1307, USA.
 
18
 */
 
19
 
 
20
#ifndef __GKBD_STATUS_H__
 
21
#define __GKBD_STATUS_H__
 
22
 
 
23
#include <gtk/gtk.h>
 
24
 
 
25
#include <libxklavier/xklavier.h>
 
26
 
 
27
#ifdef __cplusplus
 
28
extern "C" {
 
29
#endif
 
30
 
 
31
        typedef struct _GkbdStatus GkbdStatus;
 
32
        typedef struct _GkbdStatusPrivate GkbdStatusPrivate;
 
33
        typedef struct _GkbdStatusClass GkbdStatusClass;
 
34
 
 
35
#define GKBD_TYPE_STATUS             (gkbd_status_get_type ())
 
36
#define GKBD_STATUS(obj)             (G_TYPE_CHECK_INSTANCE_CAST ((obj), GKBD_TYPE_STATUS, GkbdStatus))
 
37
#define GKBD_INDCATOR_CLASS(obj)       (G_TYPE_CHECK_CLASS_CAST ((obj), GKBD_TYPE_STATUS,  GkbdStatusClass))
 
38
#define GKBD_IS_STATUS(obj)          (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GKBD_TYPE_STATUS))
 
39
#define GKBD_IS_STATUS_CLASS(obj)    (G_TYPE_CHECK_CLASS_TYPE ((obj), GKBD_TYPE_STATUS))
 
40
#define GKBD_STATUS_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), GKBD_TYPE_STATUS, GkbdStatusClass))
 
41
 
 
42
        struct _GkbdStatus {
 
43
                GtkStatusIcon parent;
 
44
                GkbdStatusPrivate *priv;
 
45
        };
 
46
 
 
47
        struct _GkbdStatusClass {
 
48
                GtkNotebookClass parent_class;
 
49
        };
 
50
 
 
51
        extern GType gkbd_status_get_type (void);
 
52
 
 
53
        extern GtkStatusIcon *gkbd_status_new (void);
 
54
 
 
55
        extern void gkbd_status_reinit_ui (GkbdStatus * gki);
 
56
 
 
57
        extern void gkbd_status_set_angle (GkbdStatus * gki,
 
58
                                           gdouble angle);
 
59
 
 
60
        extern XklEngine *gkbd_status_get_xkl_engine (void);
 
61
 
 
62
        extern gchar **gkbd_status_get_group_names (void);
 
63
 
 
64
        extern gchar *gkbd_status_get_image_filename (guint group);
 
65
 
 
66
        extern void
 
67
         gkbd_status_set_tooltips_format (const gchar str[]);
 
68
 
 
69
#ifdef __cplusplus
 
70
}
 
71
#endif
 
72
#endif