aboutsummaryrefslogtreecommitdiff
path: root/tests/dummy-indicator-entry-func.c
blob: 76d860520e590673f96c7d5a1d409ab71ea916ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
/*
Test for libindicator

Copyright 2012 Canonical Ltd.

Authors:
    Ted Gould <ted@canonical.com>

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
version 3.0 as published by the Free Software Foundation.

This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License version 3.0 for more details.

You should have received a copy of the GNU General Public
License along with this library. If not, see
<http://www.gnu.org/licenses/>.
*/

#include "dummy-indicator-entry-func.h"


GType dummy_indicator_entry_func_get_type (void);

INDICATOR_SET_VERSION
INDICATOR_SET_TYPE(DUMMY_INDICATOR_ENTRY_FUNC_TYPE)


GtkLabel *
get_label (IndicatorObject * io)
{
	return NULL;
}

GtkImage *
get_icon (IndicatorObject * io)
{
	return NULL;
}

GtkMenu *
get_menu (IndicatorObject * io)
{
	return NULL;
}
const gchar *
get_accessible_desc (IndicatorObject * io)
{
	return NULL;
}

static void dummy_indicator_entry_func_class_init (DummyIndicatorEntryFuncClass *klass);
static void dummy_indicator_entry_func_init       (DummyIndicatorEntryFunc *self);
static void dummy_indicator_entry_func_dispose    (GObject *object);
static void dummy_indicator_entry_func_finalize   (GObject *object);

G_DEFINE_TYPE (DummyIndicatorEntryFunc, dummy_indicator_entry_func, INDICATOR_OBJECT_TYPE);

static void
dummy_indicator_entry_func_class_init (DummyIndicatorEntryFuncClass *klass)
{
	GObjectClass *object_class = G_OBJECT_CLASS (klass);

	object_class->dispose = dummy_indicator_entry_func_dispose;
	object_class->finalize = dummy_indicator_entry_func_finalize;

	IndicatorObjectClass * io_class = INDICATOR_OBJECT_CLASS(klass);

	io_class->get_label = get_label;
	io_class->get_image = get_icon;
	io_class->get_menu = get_menu;
	io_class->get_accessible_desc = get_accessible_desc;

	return;
}

static void
dummy_indicator_entry_func_init (DummyIndicatorEntryFunc *self)
{

	return;
}

static void
dummy_indicator_entry_func_dispose (GObject *object)
{

	G_OBJECT_CLASS (dummy_indicator_entry_func_parent_class)->dispose (object);
	return;
}

static void
dummy_indicator_entry_func_finalize (GObject *object)
{

	G_OBJECT_CLASS (dummy_indicator_entry_func_parent_class)->finalize (object);
	return;
}