2
* Copyright (C) 2009 Sergey V. Udaltsov <svu@gnome.org>
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.
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.
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.
20
#ifndef __GKBD_STATUS_H__
21
#define __GKBD_STATUS_H__
25
#include <libxklavier/xklavier.h>
31
typedef struct _GkbdStatus GkbdStatus;
32
typedef struct _GkbdStatusPrivate GkbdStatusPrivate;
33
typedef struct _GkbdStatusClass GkbdStatusClass;
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))
44
GkbdStatusPrivate *priv;
47
struct _GkbdStatusClass {
48
GtkNotebookClass parent_class;
51
extern GType gkbd_status_get_type (void);
53
extern GtkStatusIcon *gkbd_status_new (void);
55
extern void gkbd_status_reinit_ui (GkbdStatus * gki);
57
extern void gkbd_status_set_angle (GkbdStatus * gki,
60
extern XklEngine *gkbd_status_get_xkl_engine (void);
62
extern gchar **gkbd_status_get_group_names (void);
64
extern gchar *gkbd_status_get_image_filename (guint group);
67
gkbd_status_set_tooltips_format (const gchar str[]);