~ubuntu-branches/debian/sid/bijiben/sid

« back to all changes in this revision

Viewing changes to libgd/libgd/gd-main-toolbar.h

  • Committer: Package Import Robot
  • Author(s): Vincent Cheng
  • Date: 2013-03-26 21:19:36 UTC
  • Revision ID: package-import@ubuntu.com-20130326211936-tu8mpy82juohw8m2
Tags: upstream-3.8.0
ImportĀ upstreamĀ versionĀ 3.8.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (c) 2011, 2012 Red Hat, Inc.
 
3
 *
 
4
 * This program is free software; you can redistribute it and/or modify
 
5
 * it under the terms of the GNU Lesser General Public License as published by 
 
6
 * the Free Software Foundation; either version 2 of the License, or (at your
 
7
 * option) any later version.
 
8
 *
 
9
 * This program is distributed in the hope that it will be useful, but
 
10
 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
 
11
 * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public 
 
12
 * License for more details.
 
13
 *
 
14
 * You should have received a copy of the GNU Lesser General Public License 
 
15
 * along with this program; if not, write to the Free Software Foundation,
 
16
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
17
 *
 
18
 * Author: Cosimo Cecchi <cosimoc@redhat.com>
 
19
 *
 
20
 */
 
21
 
 
22
#ifndef __GD_MAIN_TOOLBAR_H__
 
23
#define __GD_MAIN_TOOLBAR_H__
 
24
 
 
25
#include <glib-object.h>
 
26
 
 
27
#include <gtk/gtk.h>
 
28
 
 
29
G_BEGIN_DECLS
 
30
 
 
31
#define GD_TYPE_MAIN_TOOLBAR gd_main_toolbar_get_type()
 
32
 
 
33
#define GD_MAIN_TOOLBAR(obj) \
 
34
  (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
 
35
   GD_TYPE_MAIN_TOOLBAR, GdMainToolbar))
 
36
 
 
37
#define GD_MAIN_TOOLBAR_CLASS(klass) \
 
38
  (G_TYPE_CHECK_CLASS_CAST ((klass), \
 
39
   GD_TYPE_MAIN_TOOLBAR, GdMainToolbarClass))
 
40
 
 
41
#define GD_IS_MAIN_TOOLBAR(obj) \
 
42
  (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
 
43
   GD_TYPE_MAIN_TOOLBAR))
 
44
 
 
45
#define GD_IS_MAIN_TOOLBAR_CLASS(klass) \
 
46
  (G_TYPE_CHECK_CLASS_TYPE ((klass), \
 
47
   GD_TYPE_MAIN_TOOLBAR))
 
48
 
 
49
#define GD_MAIN_TOOLBAR_GET_CLASS(obj) \
 
50
  (G_TYPE_INSTANCE_GET_CLASS ((obj), \
 
51
   GD_TYPE_MAIN_TOOLBAR, GdMainToolbarClass))
 
52
 
 
53
typedef struct _GdMainToolbar GdMainToolbar;
 
54
typedef struct _GdMainToolbarClass GdMainToolbarClass;
 
55
typedef struct _GdMainToolbarPrivate GdMainToolbarPrivate;
 
56
 
 
57
struct _GdMainToolbar
 
58
{
 
59
  GtkToolbar parent;
 
60
 
 
61
  GdMainToolbarPrivate *priv;
 
62
};
 
63
 
 
64
struct _GdMainToolbarClass
 
65
{
 
66
  GtkToolbarClass parent_class;
 
67
};
 
68
 
 
69
GType gd_main_toolbar_get_type (void) G_GNUC_CONST;
 
70
 
 
71
GtkWidget     *gd_main_toolbar_new (void);
 
72
 
 
73
void        gd_main_toolbar_set_labels (GdMainToolbar *self,
 
74
                                        const gchar *primary,
 
75
                                        const gchar *detail);
 
76
 
 
77
void        gd_main_toolbar_set_labels_menu (GdMainToolbar *self,
 
78
                                             GMenuModel    *menu);
 
79
 
 
80
GtkWidget * gd_main_toolbar_add_mode (GdMainToolbar *self,
 
81
                                      const gchar *label);
 
82
 
 
83
void        gd_main_toolbar_clear (GdMainToolbar *self);
 
84
 
 
85
GtkWidget * gd_main_toolbar_add_button (GdMainToolbar *self,
 
86
                                        const gchar *icon_name,
 
87
                                        const gchar *label,
 
88
                                        gboolean pack_start);
 
89
 
 
90
GtkWidget * gd_main_toolbar_add_toggle (GdMainToolbar *self,
 
91
                                        const gchar *icon_name,
 
92
                                        const gchar *label,
 
93
                                        gboolean pack_start);
 
94
 
 
95
GtkWidget * gd_main_toolbar_add_menu (GdMainToolbar *self,
 
96
                                      const gchar *icon_name,
 
97
                                      const gchar *label,
 
98
                                      gboolean pack_start);
 
99
 
 
100
void        gd_main_toolbar_add_widget (GdMainToolbar *self,
 
101
                                        GtkWidget *widget,
 
102
                                        gboolean pack_start);
 
103
 
 
104
gboolean    gd_main_toolbar_get_show_modes (GdMainToolbar *self);
 
105
 
 
106
void        gd_main_toolbar_set_show_modes (GdMainToolbar *self,
 
107
                                            gboolean show_modes);
 
108
 
 
109
G_END_DECLS
 
110
 
 
111
#endif /* __GD_MAIN_TOOLBAR_H__ */