[473884]: templates / icon_source_emblem.c  Maximize  Restore  History

Download this file

109 lines (85 with data), 3.0 kB

  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
102
103
104
105
106
107
108
/*
rox-media (Media) - DeviceKit-disks utility for ROX
Copyright (C) 2009 Tony Houghton <h@realh.co.uk>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program 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 for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "icon_source_emblem.h"
#include "icon_source_emblem_priv.h"
#define H_ICON_SOURCE_EMBLEM_GET_PRIVATE(obj) \
(G_TYPE_INSTANCE_GET_PRIVATE((obj), \
H_TYPE_ICON_SOURCE_EMBLEM, HIconSourceEmblemPrivate))
/*
static void
do_something(HIconSourceEmblem *self)
{
HIconSourceEmblemPrivate *priv = self->priv;
}
*/
static void
h_icon_source_method(HIconSource *iself)
{
HIconSourceEmblem *self = H_ICON_SOURCE_EMBLEM(iself);
HIconSourceEmblemPrivate *priv = self->priv;
}
static void
h_icon_source_emblem_init_h_icon_source(HIconSourceInterface *iface)
{
iface->h_icon_source_method = h_icon_source_method;
}
G_DEFINE_TYPE_WITH_CODE(HIconSourceEmblem, h_icon_source_emblem, G_TYPE_OBJECT,
G_IMPLEMENT_INTERFACE(H_TYPE_ICON_SOURCE,
h_icon_source_emblem_init_h_icon_source));
static void
h_icon_source_emblem_init(HIconSourceEmblem *self)
{
HIconSourceEmblemPrivate *priv = self->priv =
H_ICON_SOURCE_EMBLEM_GET_PRIVATE(self);
// self->foo = bar;
}
static void
h_icon_source_emblem_dispose(GObject *gobj)
{
HIconSourceEmblem *self = H_ICON_SOURCE_EMBLEM(gobj);
HIconSourceEmblemPrivate *priv = self->priv;
G_OBJECT_CLASS(h_icon_source_emblem_parent_class)->dispose(gobj);
}
static void
h_icon_source_emblem_finalize(GObject *gobj)
{
G_OBJECT_CLASS(h_icon_source_emblem_parent_class)->finalize(gobj);
}
static void
h_icon_source_emblem_class_init(HIconSourceEmblemClass *klass)
{
GObjectClass *gclass;
g_type_class_add_private(klass, sizeof(HIconSourceEmblemPrivate));
gclass = G_OBJECT_CLASS(klass);
/* Initialise any virtual functions here:
klass->do_something = do_something;
*/
gclass->dispose = h_icon_source_emblem_dispose;
gclass->finalize = h_icon_source_emblem_finalize;
}
HIconSourceEmblem *
h_icon_source_emblem_new(void)
{
return H_ICON_SOURCE_EMBLEM(g_object_new(H_TYPE_ICON_SOURCE_EMBLEM, NULL));
}
/*
static void
h_icon_source_emblem_do_something(HIconSourceEmblem *self)
{
g_return_if_fail(H_IS_ICON_SOURCE_EMBLEM(self));
H_ICON_SOURCE_EMBLEM_GET_CLASS(self)->do_something(self);
}
*/

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks