~ubuntu-branches/debian/stretch/glade/stretch

« back to all changes in this revision

Viewing changes to gladeui/glade-widget-action.c

  • Committer: Package Import Robot
  • Author(s): Andreas Henriksson, Emilio Pozuelo Monfort, Andreas Henriksson
  • Date: 2014-05-23 13:00:17 UTC
  • mfrom: (1.3.2)
  • Revision ID: package-import@ubuntu.com-20140523130017-7sp231ghdz55szde
Tags: 3.18.3-1
[ Emilio Pozuelo Monfort ]
* debian/rules:
  + Pass -c4 to dpkg-gensymbols so we know when new symbols are added.
* debian/libgladeui-2-6.symbols:
  + Add missing symbols.

[ Andreas Henriksson ]
* New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
 
54
54
static GParamSpec *properties[N_PROPERTIES];
55
55
 
56
 
G_DEFINE_TYPE (GladeWidgetAction, glade_widget_action, G_TYPE_OBJECT);
 
56
G_DEFINE_TYPE_WITH_PRIVATE (GladeWidgetAction, glade_widget_action, G_TYPE_OBJECT);
57
57
 
58
58
static void
59
 
glade_widget_action_init (GladeWidgetAction * object)
 
59
glade_widget_action_init (GladeWidgetAction *object)
60
60
{
61
 
  object->priv = G_TYPE_INSTANCE_GET_PRIVATE (object,
62
 
                                              GLADE_TYPE_WIDGET_ACTION,
63
 
                                              GladeWidgetActionPrivate);
 
61
  object->priv = glade_widget_action_get_instance_private (object);
64
62
 
65
63
  object->priv->sensitive = TRUE;
66
64
  object->priv->visible   = TRUE;
68
66
}
69
67
 
70
68
static void
71
 
glade_widget_action_finalize (GObject * object)
 
69
glade_widget_action_finalize (GObject *object)
72
70
{
73
71
  GladeWidgetAction *action = GLADE_WIDGET_ACTION (object);
74
72
 
82
80
}
83
81
 
84
82
static GObject *
85
 
glade_widget_action_constructor (GType type,
86
 
                                 guint n_construct_properties,
87
 
                                 GObjectConstructParam * construct_properties)
 
83
glade_widget_action_constructor (GType                  type,
 
84
                                 guint                  n_construct_properties,
 
85
                                 GObjectConstructParam *construct_properties)
88
86
{
89
87
  GladeWidgetAction *action;
90
88
  GObject *object;
118
116
}
119
117
 
120
118
static void
121
 
glade_widget_action_set_property (GObject * object, guint prop_id,
122
 
                                  const GValue * value, GParamSpec * pspec)
 
119
glade_widget_action_set_property (GObject      *object,
 
120
                                  guint         prop_id,
 
121
                                  const GValue *value,
 
122
                                  GParamSpec   *pspec)
123
123
{
124
124
  GladeWidgetAction *action = GLADE_WIDGET_ACTION (object);
125
125
 
143
143
}
144
144
 
145
145
static void
146
 
glade_widget_action_get_property (GObject * object, guint prop_id,
147
 
                                  GValue * value, GParamSpec * pspec)
 
146
glade_widget_action_get_property (GObject    *object,
 
147
                                  guint       prop_id,
 
148
                                  GValue     *value,
 
149
                                  GParamSpec *pspec)
148
150
{
149
151
  GladeWidgetAction *action = GLADE_WIDGET_ACTION (object);
150
152
 
168
170
}
169
171
 
170
172
static void
171
 
glade_widget_action_class_init (GladeWidgetActionClass * klass)
 
173
glade_widget_action_class_init (GladeWidgetActionClass *klass)
172
174
{
173
175
  GObjectClass *object_class = G_OBJECT_CLASS (klass);
174
 
  glade_widget_action_parent_class =
175
 
      G_OBJECT_CLASS (g_type_class_peek_parent (klass));
176
176
 
177
177
  object_class->constructor = glade_widget_action_constructor;
178
178
  object_class->finalize = glade_widget_action_finalize;
201
201
 
202
202
  /* Install all properties */
203
203
  g_object_class_install_properties (object_class, N_PROPERTIES, properties);
204
 
 
205
 
  g_type_class_add_private (klass, sizeof (GladeWidgetActionPrivate));
206
204
}
207
205
 
208
206
/**
214
212
 *
215
213
 */
216
214
void
217
 
glade_widget_action_set_sensitive (GladeWidgetAction * action,
218
 
                                   gboolean sensitive)
 
215
glade_widget_action_set_sensitive (GladeWidgetAction *action,
 
216
                                   gboolean           sensitive)
219
217
{
220
218
  g_return_if_fail (GLADE_IS_WIDGET_ACTION (action));
221
219
 
269
267
 *                         GWActionClass                       *
270
268
 ***************************************************************/
271
269
static const gchar *
272
 
gwa_action_path_get_id (const gchar * action_path)
 
270
gwa_action_path_get_id (const gchar *action_path)
273
271
{
274
272
  const gchar *id;
275
273
 
304
302
 * Returns: a newlly allocated copy of @action.
305
303
 */
306
304
GWActionClass *
307
 
glade_widget_action_class_clone (GWActionClass * action)
 
305
glade_widget_action_class_clone (GWActionClass *action)
308
306
{
309
307
  GWActionClass *copy;
310
308
  GList *l;