1
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
3
* Copyright (C) 2009 Mathias Hasselmann
5
* This program is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU General Public License as
7
* published by the Free Software Foundation; either version 2 of the
8
* License, or (at your option) any later version.
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
* General Public License for more details.
15
* You should have received a copy of the GNU General Public
16
* License along with this program; if not, write to the
17
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18
* Boston, MA 02111-1307, USA.
21
#ifndef __GIGGLE_REVISION_INFO_ACTION_H__
22
#define __GIGGLE_REVISION_INFO_ACTION_H__
26
#include "libgiggle/giggle-revision.h"
30
#define GIGGLE_TYPE_REVISION_INFO_ACTION (giggle_revision_info_action_get_type ())
31
#define GIGGLE_REVISION_INFO_ACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIGGLE_TYPE_REVISION_INFO_ACTION, GiggleRevisionInfoAction))
32
#define GIGGLE_REVISION_INFO_ACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GIGGLE_TYPE_REVISION_INFO_ACTION, GiggleRevisionInfoActionClass))
33
#define GIGGLE_IS_REVISION_INFO_ACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GIGGLE_TYPE_REVISION_INFO_ACTION))
34
#define GIGGLE_IS_REVISION_INFO_ACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GIGGLE_TYPE_REVISION_INFO_ACTION))
35
#define GIGGLE_REVISION_INFO_ACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GIGGLE_TYPE_REVISION_INFO_ACTION, GiggleRevisionInfoActionClass))
37
typedef struct GiggleRevisionInfoAction GiggleRevisionInfoAction;
38
typedef struct GiggleRevisionInfoActionClass GiggleRevisionInfoActionClass;
40
struct GiggleRevisionInfoAction {
41
GtkAction parent_instance;
44
struct GiggleRevisionInfoActionClass {
45
GtkActionClass parent_class;
48
GType giggle_revision_info_action_get_type (void);
49
GtkAction * giggle_revision_info_action_new (const char *name);
51
void giggle_revision_info_action_set_markup (GiggleRevisionInfoAction *action,
54
void giggle_revision_info_action_set_revision (GiggleRevisionInfoAction *action,
55
GiggleRevision *revision);
57
GiggleRevision * giggle_revision_info_action_get_revision (GiggleRevisionInfoAction *action);
59
void giggle_revision_info_action_set_expand (GiggleRevisionInfoAction *action,
62
gboolean giggle_revision_info_action_get_expand (GiggleRevisionInfoAction *action);
66
#endif /* __GIGGLE_REVISION_INFO_ACTION_H__ */