Mercurial > pidgin
comparison libpurple/theme-loader.c @ 25089:d60c3d1c6966
fixed some gobject stuff
author | Justin Rodriguez <ffdragon@soc.pidgin.im> |
---|---|
date | Sat, 21 Jun 2008 23:42:57 +0000 |
parents | 9ffbfbcf307d |
children | 5a02912e0bac |
comparison
equal
deleted
inserted
replaced
25088:9ffbfbcf307d | 25089:d60c3d1c6966 |
---|---|
41 static GObjectClass *parent_class = NULL; | 41 static GObjectClass *parent_class = NULL; |
42 | 42 |
43 /****************************************************************************** | 43 /****************************************************************************** |
44 * Enums | 44 * Enums |
45 *****************************************************************************/ | 45 *****************************************************************************/ |
46 #define PROP_TYPE_S "type" | |
47 | 46 |
48 enum { | 47 enum { |
49 PROP_ZERO = 0, | 48 PROP_ZERO = 0, |
50 PROP_TYPE, | 49 PROP_TYPE, |
51 }; | 50 }; |
107 obj_class->get_property = purple_theme_loader_get_property; | 106 obj_class->get_property = purple_theme_loader_get_property; |
108 obj_class->set_property = purple_theme_loader_set_property; | 107 obj_class->set_property = purple_theme_loader_set_property; |
109 obj_class->finalize = purple_theme_loader_finalize; | 108 obj_class->finalize = purple_theme_loader_finalize; |
110 | 109 |
111 /* TYPE STRING (read only) */ | 110 /* TYPE STRING (read only) */ |
112 pspec = g_param_spec_string(PROP_TYPE_S, "Type", | 111 pspec = g_param_spec_string("type", "Type", |
113 "The string represtenting the type of the theme", | 112 "The string represtenting the type of the theme", |
114 NULL, | 113 NULL, |
115 G_PARAM_READABLE | G_PARAM_CONSTRUCT_ONLY); | 114 G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY); |
116 g_object_class_install_property(obj_class, PROP_TYPE, pspec); | 115 g_object_class_install_property(obj_class, PROP_TYPE, pspec); |
117 } | 116 } |
118 | 117 |
119 | 118 |
120 GType | 119 GType |