~ubuntu-branches/ubuntu/raring/rygel/raring

« back to all changes in this revision

Viewing changes to src/ui/rygel-network-pref-section.c

  • Committer: Package Import Robot
  • Author(s): Andreas Henriksson
  • Date: 2012-09-26 22:34:15 UTC
  • mfrom: (1.3.2)
  • mto: (14.1.10 sid)
  • mto: This revision was merged to the branch mainline in revision 27.
  • Revision ID: package-import@ubuntu.com-20120926223415-mem27auv86jjrj9k
ImportedĀ UpstreamĀ versionĀ 0.16.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* rygel-network-pref-section.c generated by valac 0.17.4.16-52707, the Vala compiler
 
1
/* rygel-network-pref-section.c generated by valac 0.16.1, the Vala compiler
2
2
 * generated from rygel-network-pref-section.vala, do not modify */
3
3
 
4
4
/*
68
68
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
69
69
#define _g_free0(var) (var = (g_free (var), NULL))
70
70
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
71
 
#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
72
71
 
73
72
struct _RygelPreferencesSection {
74
73
        GObject parent_instance;
123
122
 
124
123
 
125
124
static gpointer _g_object_ref0 (gpointer self) {
126
 
#line 37 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
127
125
        return self ? g_object_ref (self) : NULL;
128
 
#line 129 "rygel-network-pref-section.c"
129
126
}
130
127
 
131
128
 
132
129
static void _rygel_network_pref_section_on_context_available_gupnp_context_manager_context_available (GUPnPContextManager* _sender, GUPnPContext* p0, gpointer self) {
133
 
#line 51 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
134
130
        rygel_network_pref_section_on_context_available (self, _sender, p0);
135
 
#line 136 "rygel-network-pref-section.c"
136
131
}
137
132
 
138
133
 
139
134
static void _rygel_network_pref_section_on_context_unavailable_gupnp_context_manager_context_unavailable (GUPnPContextManager* _sender, GUPnPContext* p0, gpointer self) {
140
 
#line 53 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
141
135
        rygel_network_pref_section_on_context_unavailable (self, _sender, p0);
142
 
#line 143 "rygel-network-pref-section.c"
143
136
}
144
137
 
145
138
 
154
147
        GUPnPContextManager* _tmp12_;
155
148
        GUPnPContextManager* _tmp13_;
156
149
        GError * _inner_error_ = NULL;
157
 
#line 33 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
158
150
        g_return_val_if_fail (builder != NULL, NULL);
159
 
#line 33 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
160
151
        g_return_val_if_fail (config != NULL, NULL);
161
 
#line 35 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
162
152
        _tmp0_ = config;
163
 
#line 35 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
164
153
        self = (RygelNetworkPrefSection*) rygel_preferences_section_construct (object_type, _tmp0_, "general");
165
 
#line 37 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
166
154
        _tmp1_ = builder;
167
 
#line 37 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
168
155
        _tmp2_ = gtk_builder_get_object (_tmp1_, RYGEL_NETWORK_PREF_SECTION_IFACE_ENTRY);
169
 
#line 37 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
170
 
        _tmp3_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GTK_TYPE_COMBO_BOX_TEXT, GtkComboBoxText));
171
 
#line 37 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
 
156
        _tmp3_ = _g_object_ref0 (GTK_COMBO_BOX_TEXT (_tmp2_));
172
157
        _g_object_unref0 (self->priv->iface_entry);
173
 
#line 37 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
174
158
        self->priv->iface_entry = _tmp3_;
175
 
#line 38 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
176
159
        _tmp4_ = self->priv->iface_entry;
177
 
#line 38 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
178
 
        _vala_assert (_tmp4_ != NULL, "this.iface_entry != null");
179
 
#line 40 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
 
160
        g_assert (_tmp4_ != NULL);
180
161
        _tmp5_ = gupnp_context_manager_new (NULL, (guint) 0);
181
 
#line 40 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
182
162
        _g_object_unref0 (self->priv->context_manager);
183
 
#line 40 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
184
163
        self->priv->context_manager = _tmp5_;
185
 
#line 186 "rygel-network-pref-section.c"
186
164
        {
187
165
                RygelWritableUserConfig* _tmp6_;
188
166
                gchar* _tmp7_ = NULL;
190
168
                GtkComboBoxText* _tmp9_;
191
169
                gchar* _tmp10_;
192
170
                GtkComboBoxText* _tmp11_;
193
 
#line 43 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
194
171
                _tmp6_ = config;
195
 
#line 43 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
196
172
                _tmp7_ = rygel_configuration_get_interface ((RygelConfiguration*) _tmp6_, &_inner_error_);
197
 
#line 43 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
198
173
                _tmp8_ = _tmp7_;
199
 
#line 43 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
200
174
                if (_inner_error_ != NULL) {
201
 
#line 202 "rygel-network-pref-section.c"
202
175
                        goto __catch8_g_error;
203
176
                }
204
 
#line 43 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
205
177
                _tmp9_ = self->priv->iface_entry;
206
 
#line 43 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
207
178
                _tmp10_ = _tmp8_;
208
 
#line 43 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
209
179
                gtk_combo_box_text_append_text (_tmp9_, _tmp10_);
210
 
#line 43 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
211
180
                _g_free0 (_tmp10_);
212
 
#line 45 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
213
181
                _tmp11_ = self->priv->iface_entry;
214
 
#line 45 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
215
182
                gtk_combo_box_set_active ((GtkComboBox*) _tmp11_, 0);
216
 
#line 217 "rygel-network-pref-section.c"
217
183
        }
218
184
        goto __finally8;
219
185
        __catch8_g_error:
220
186
        {
221
187
                GError* err = NULL;
222
 
#line 42 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
223
188
                err = _inner_error_;
224
 
#line 42 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
225
189
                _inner_error_ = NULL;
226
 
#line 42 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
227
190
                _g_error_free0 (err);
228
 
#line 229 "rygel-network-pref-section.c"
229
191
        }
230
192
        __finally8:
231
 
#line 42 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
232
193
        if (_inner_error_ != NULL) {
233
 
#line 42 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
234
194
                g_propagate_error (error, _inner_error_);
235
 
#line 42 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
236
195
                _g_object_unref0 (self);
237
 
#line 42 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
238
196
                return NULL;
239
 
#line 240 "rygel-network-pref-section.c"
240
197
        }
241
 
#line 51 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
242
198
        _tmp12_ = self->priv->context_manager;
243
 
#line 51 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
244
199
        g_signal_connect_object (_tmp12_, "context-available", (GCallback) _rygel_network_pref_section_on_context_available_gupnp_context_manager_context_available, self, 0);
245
 
#line 53 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
246
200
        _tmp13_ = self->priv->context_manager;
247
 
#line 53 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
248
201
        g_signal_connect_object (_tmp13_, "context-unavailable", (GCallback) _rygel_network_pref_section_on_context_unavailable_gupnp_context_manager_context_unavailable, self, 0);
249
 
#line 33 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
250
202
        return self;
251
 
#line 252 "rygel-network-pref-section.c"
252
203
}
253
204
 
254
205
 
255
206
RygelNetworkPrefSection* rygel_network_pref_section_new (GtkBuilder* builder, RygelWritableUserConfig* config, GError** error) {
256
 
#line 33 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
257
207
        return rygel_network_pref_section_construct (RYGEL_TYPE_NETWORK_PREF_SECTION, builder, config, error);
258
 
#line 259 "rygel-network-pref-section.c"
259
208
}
260
209
 
261
210
 
270
219
        gint _tmp5_;
271
220
        RygelWritableUserConfig* _tmp7_;
272
221
        const gchar* _tmp8_;
273
 
#line 57 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
274
222
        self = (RygelNetworkPrefSection*) base;
275
 
#line 58 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
276
223
        _tmp0_ = self->priv->iface_entry;
277
 
#line 58 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
278
224
        _tmp1_ = gtk_combo_box_text_get_active_text (_tmp0_);
279
 
#line 58 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
280
225
        _tmp2_ = g_strdup (_tmp1_);
281
 
#line 58 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
282
226
        iface = _tmp2_;
283
 
#line 61 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
284
227
        _tmp3_ = self->priv->iface_entry;
285
 
#line 61 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
286
228
        _tmp4_ = gtk_combo_box_get_active ((GtkComboBox*) _tmp3_);
287
 
#line 61 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
288
229
        _tmp5_ = _tmp4_;
289
 
#line 61 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
290
230
        if (_tmp5_ <= 0) {
291
 
#line 292 "rygel-network-pref-section.c"
292
231
                gchar* _tmp6_;
293
 
#line 62 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
294
232
                _tmp6_ = g_strdup ("");
295
 
#line 62 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
296
233
                _g_free0 (iface);
297
 
#line 62 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
298
234
                iface = _tmp6_;
299
 
#line 300 "rygel-network-pref-section.c"
300
235
        }
301
 
#line 65 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
302
236
        _tmp7_ = ((RygelPreferencesSection*) self)->config;
303
 
#line 65 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
304
237
        _tmp8_ = iface;
305
 
#line 65 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
306
238
        rygel_writable_user_config_set_interface (_tmp7_, _tmp8_);
307
 
#line 57 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
308
239
        _g_free0 (iface);
309
 
#line 310 "rygel-network-pref-section.c"
310
240
}
311
241
 
312
242
 
314
244
        RygelNetworkPrefSection * self;
315
245
        GtkComboBoxText* _tmp0_;
316
246
        gboolean _tmp1_;
317
 
#line 68 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
318
247
        self = (RygelNetworkPrefSection*) base;
319
 
#line 69 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
320
248
        _tmp0_ = self->priv->iface_entry;
321
 
#line 69 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
322
249
        _tmp1_ = sensitivity;
323
 
#line 69 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
324
250
        gtk_widget_set_sensitive ((GtkWidget*) _tmp0_, _tmp1_);
325
 
#line 326 "rygel-network-pref-section.c"
326
251
}
327
252
 
328
253
 
333
258
        const gchar* _tmp2_;
334
259
        GtkTreeIter _tmp3_ = {0};
335
260
        gboolean _tmp4_ = FALSE;
336
 
#line 72 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
337
261
        g_return_if_fail (self != NULL);
338
 
#line 72 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
339
262
        g_return_if_fail (manager != NULL);
340
 
#line 72 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
341
263
        g_return_if_fail (context != NULL);
342
 
#line 76 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
343
264
        _tmp0_ = context;
344
 
#line 76 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
345
265
        _tmp1_ = gssdp_client_get_interface ((GSSDPClient*) _tmp0_);
346
 
#line 76 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
347
266
        _tmp2_ = _tmp1_;
348
 
#line 76 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
349
267
        _tmp4_ = rygel_network_pref_section_find_interface (self, _tmp2_, &_tmp3_);
350
 
#line 76 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
351
268
        iter = _tmp3_;
352
 
#line 76 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
353
269
        if (!_tmp4_) {
354
 
#line 355 "rygel-network-pref-section.c"
355
270
                GtkComboBoxText* _tmp5_;
356
271
                GUPnPContext* _tmp6_;
357
272
                const gchar* _tmp7_;
358
273
                const gchar* _tmp8_;
359
 
#line 77 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
360
274
                _tmp5_ = self->priv->iface_entry;
361
 
#line 77 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
362
275
                _tmp6_ = context;
363
 
#line 77 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
364
276
                _tmp7_ = gssdp_client_get_interface ((GSSDPClient*) _tmp6_);
365
 
#line 77 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
366
277
                _tmp8_ = _tmp7_;
367
 
#line 77 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
368
278
                gtk_combo_box_text_append_text (_tmp5_, _tmp8_);
369
 
#line 370 "rygel-network-pref-section.c"
370
279
        }
371
280
}
372
281
 
378
287
        const gchar* _tmp2_;
379
288
        GtkTreeIter _tmp3_ = {0};
380
289
        gboolean _tmp4_ = FALSE;
381
 
#line 81 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
382
290
        g_return_if_fail (self != NULL);
383
 
#line 81 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
384
291
        g_return_if_fail (manager != NULL);
385
 
#line 81 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
386
292
        g_return_if_fail (context != NULL);
387
 
#line 85 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
388
293
        _tmp0_ = context;
389
 
#line 85 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
390
294
        _tmp1_ = gssdp_client_get_interface ((GSSDPClient*) _tmp0_);
391
 
#line 85 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
392
295
        _tmp2_ = _tmp1_;
393
 
#line 85 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
394
296
        _tmp4_ = rygel_network_pref_section_find_interface (self, _tmp2_, &_tmp3_);
395
 
#line 85 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
396
297
        iter = _tmp3_;
397
 
#line 85 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
398
298
        if (_tmp4_) {
399
 
#line 400 "rygel-network-pref-section.c"
400
299
                GtkComboBoxText* _tmp5_;
401
300
                GtkTreeModel* _tmp6_;
402
301
                GtkTreeModel* _tmp7_;
404
303
                GtkListStore* list_store;
405
304
                GtkListStore* _tmp9_;
406
305
                GtkTreeIter _tmp10_;
407
 
#line 86 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
408
306
                _tmp5_ = self->priv->iface_entry;
409
 
#line 86 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
410
307
                _tmp6_ = gtk_combo_box_get_model ((GtkComboBox*) _tmp5_);
411
 
#line 86 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
412
308
                _tmp7_ = _tmp6_;
413
 
#line 86 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
414
 
                _tmp8_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp7_, GTK_TYPE_LIST_STORE) ? ((GtkListStore*) _tmp7_) : NULL);
415
 
#line 86 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
 
309
                _tmp8_ = _g_object_ref0 (GTK_IS_LIST_STORE (_tmp7_) ? ((GtkListStore*) _tmp7_) : NULL);
416
310
                list_store = _tmp8_;
417
 
#line 87 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
418
311
                _tmp9_ = list_store;
419
 
#line 87 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
420
312
                _tmp10_ = iter;
421
 
#line 87 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
422
313
                gtk_list_store_remove (_tmp9_, &_tmp10_);
423
 
#line 85 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
424
314
                _g_object_unref0 (list_store);
425
 
#line 426 "rygel-network-pref-section.c"
426
315
        }
427
316
}
428
317
 
439
328
        GtkTreeIter _tmp5_ = {0};
440
329
        gboolean _tmp6_ = FALSE;
441
330
        gboolean more;
442
 
#line 91 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
443
331
        g_return_val_if_fail (self != NULL, FALSE);
444
 
#line 91 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
445
332
        g_return_val_if_fail (iface != NULL, FALSE);
446
 
#line 92 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
447
333
        _tmp0_ = self->priv->iface_entry;
448
 
#line 92 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
449
334
        _tmp1_ = gtk_combo_box_get_model ((GtkComboBox*) _tmp0_);
450
 
#line 92 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
451
335
        _tmp2_ = _tmp1_;
452
 
#line 92 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
453
336
        _tmp3_ = _g_object_ref0 (_tmp2_);
454
 
#line 92 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
455
337
        model = _tmp3_;
456
 
#line 93 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
457
338
        _tmp4_ = model;
458
 
#line 93 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
459
339
        _tmp6_ = gtk_tree_model_get_iter_first (_tmp4_, &_tmp5_);
460
 
#line 93 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
461
340
        _vala_iter = _tmp5_;
462
 
#line 93 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
463
341
        more = _tmp6_;
464
 
#line 94 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
465
342
        while (TRUE) {
466
 
#line 467 "rygel-network-pref-section.c"
467
343
                gboolean _tmp7_;
468
344
                GtkTreeModel* _tmp8_;
469
345
                GtkTreeIter _tmp9_;
471
347
                const gchar* _tmp11_;
472
348
                GtkTreeModel* _tmp12_;
473
349
                gboolean _tmp13_ = FALSE;
474
 
#line 94 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
475
350
                _tmp7_ = more;
476
 
#line 94 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
477
351
                if (!_tmp7_) {
478
 
#line 94 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
479
352
                        break;
480
 
#line 481 "rygel-network-pref-section.c"
481
353
                }
482
 
#line 95 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
483
354
                _tmp8_ = model;
484
 
#line 95 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
485
355
                _tmp9_ = _vala_iter;
486
 
#line 95 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
487
356
                gtk_tree_model_get (_tmp8_, &_tmp9_, 0, &((RygelPreferencesSection*) self)->name, -1, -1);
488
 
#line 97 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
489
357
                _tmp10_ = ((RygelPreferencesSection*) self)->name;
490
 
#line 97 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
491
358
                _tmp11_ = iface;
492
 
#line 97 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
493
359
                if (g_strcmp0 (_tmp10_, _tmp11_) == 0) {
494
 
#line 98 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
495
360
                        break;
496
 
#line 497 "rygel-network-pref-section.c"
497
361
                }
498
 
#line 101 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
499
362
                _tmp12_ = model;
500
 
#line 101 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
501
363
                _tmp13_ = gtk_tree_model_iter_next (_tmp12_, &_vala_iter);
502
 
#line 101 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
503
364
                more = _tmp13_;
504
 
#line 505 "rygel-network-pref-section.c"
505
365
        }
506
 
#line 104 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
507
366
        result = more;
508
 
#line 104 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
509
367
        _g_object_unref0 (model);
510
 
#line 104 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
511
368
        if (iter) {
512
 
#line 104 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
513
369
                *iter = _vala_iter;
514
 
#line 515 "rygel-network-pref-section.c"
515
370
        }
516
 
#line 104 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
517
371
        return result;
518
 
#line 519 "rygel-network-pref-section.c"
519
372
}
520
373
 
521
374
 
522
375
static void rygel_network_pref_section_class_init (RygelNetworkPrefSectionClass * klass) {
523
 
#line 26 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
524
376
        rygel_network_pref_section_parent_class = g_type_class_peek_parent (klass);
525
 
#line 26 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
526
377
        g_type_class_add_private (klass, sizeof (RygelNetworkPrefSectionPrivate));
527
 
#line 26 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
528
378
        RYGEL_PREFERENCES_SECTION_CLASS (klass)->save = rygel_network_pref_section_real_save;
529
 
#line 26 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
530
379
        RYGEL_PREFERENCES_SECTION_CLASS (klass)->set_sensitivity = rygel_network_pref_section_real_set_sensitivity;
531
 
#line 26 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
532
380
        G_OBJECT_CLASS (klass)->finalize = rygel_network_pref_section_finalize;
533
 
#line 534 "rygel-network-pref-section.c"
534
381
}
535
382
 
536
383
 
537
384
static void rygel_network_pref_section_instance_init (RygelNetworkPrefSection * self) {
538
 
#line 26 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
539
385
        self->priv = RYGEL_NETWORK_PREF_SECTION_GET_PRIVATE (self);
540
 
#line 541 "rygel-network-pref-section.c"
541
386
}
542
387
 
543
388
 
544
389
static void rygel_network_pref_section_finalize (GObject* obj) {
545
390
        RygelNetworkPrefSection * self;
546
 
#line 26 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
547
 
        self = G_TYPE_CHECK_INSTANCE_CAST (obj, RYGEL_TYPE_NETWORK_PREF_SECTION, RygelNetworkPrefSection);
548
 
#line 29 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
 
391
        self = RYGEL_NETWORK_PREF_SECTION (obj);
549
392
        _g_object_unref0 (self->priv->iface_entry);
550
 
#line 31 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
551
393
        _g_object_unref0 (self->priv->context_manager);
552
 
#line 26 "/home/jens/Source/rygel/src/ui/rygel-network-pref-section.vala"
553
394
        G_OBJECT_CLASS (rygel_network_pref_section_parent_class)->finalize (obj);
554
 
#line 555 "rygel-network-pref-section.c"
555
395
}
556
396
 
557
397