Code

Set merge from trunk
[inkscape.git] / src / libgdl / gdl-switcher.h
1 /* -*- Mode: C; indent-tabs-mode: nil; c-basic-offset: 4; tab-width: 8 -*- */
2 /* gdl-switcher.h
3  *
4  * Copyright (C) 2003  Ettore Perazzoli
5  *               2007  Naba Kumar
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of version 2 of the GNU General Public
9  * License as published by the Free Software Foundation.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public
17  * License along with this program; if not, write to the
18  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19  * Boston, MA 02111-1307, USA.
20  *
21  * Authors: Ettore Perazzoli <ettore@ximian.com>
22  *          Naba Kumar  <naba@gnome.org>
23  */
25 #ifndef _GDL_SWITCHER_H_
26 #define _GDL_SWITCHER_H_
28 #include <gtk/gtknotebook.h>
30 G_BEGIN_DECLS
32 #define GDL_TYPE_SWITCHER            (gdl_switcher_get_type ())
33 #define GDL_SWITCHER(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), GDL_TYPE_SWITCHER, GdlSwitcher))
34 #define GDL_SWITCHER_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), GDL_TYPE_SWITCHER, GdlSwitcherClass))
35 #define GDL_IS_SWITCHER(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GDL_TYPE_SWITCHER))
36 #define GDL_IS_SWITCHER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), GDL_TYPE_SWITCHER))
38 typedef struct _GdlSwitcher        GdlSwitcher;
39 typedef struct _GdlSwitcherPrivate GdlSwitcherPrivate;
40 typedef struct _GdlSwitcherClass   GdlSwitcherClass;
42 typedef enum {
43     GDL_SWITCHER_STYLE_TEXT,
44     GDL_SWITCHER_STYLE_ICON,
45     GDL_SWITCHER_STYLE_BOTH,
46     GDL_SWITCHER_STYLE_TOOLBAR,
47     GDL_SWITCHER_STYLE_TABS
48 } GdlSwitcherStyle;
50 struct _GdlSwitcher {
51     GtkNotebook parent;
53     GdlSwitcherPrivate *priv;
54 };
56 struct _GdlSwitcherClass {
57     GtkNotebookClass parent_class;
58 };
60 GType      gdl_switcher_get_type     (void);
61 GtkWidget *gdl_switcher_new          (void);
63 gint       gdl_switcher_insert_page  (GdlSwitcher *switcher,
64                                       GtkWidget   *page,
65                                       GtkWidget   *tab_widget,
66                                       const gchar *label,
67                                       const gchar *tooltips,
68                                       const gchar *stock_id,
69                                       const GdkPixbuf *pixbuf_icon,
70                                       gint position);
71 G_END_DECLS
73 #endif /* _GDL_SWITCHER_H_ */