479
485
_tmp8_.alpha = (gdouble) 1.0f;
480
486
gtk_widget_override_color ((GtkWidget*) _tmp7_, GTK_STATE_FLAG_NORMAL, &_tmp8_);
481
487
_tmp9_ = self->name_label;
482
gtk_widget_set_valign ((GtkWidget*) _tmp9_, GTK_ALIGN_START);
488
gtk_widget_set_margin_top ((GtkWidget*) _tmp9_, PROMPT_BOX_NAME_MARGIN_TOP);
483
489
_tmp10_ = self->name_label;
484
gtk_widget_set_vexpand ((GtkWidget*) _tmp10_, TRUE);
490
gtk_widget_set_valign ((GtkWidget*) _tmp10_, GTK_ALIGN_START);
485
491
_tmp11_ = self->name_label;
486
g_object_set ((GtkMisc*) _tmp11_, "xalign", 0.0f, NULL);
492
gtk_widget_set_vexpand ((GtkWidget*) _tmp11_, TRUE);
487
493
_tmp12_ = self->name_label;
488
gtk_widget_set_size_request ((GtkWidget*) _tmp12_, -1, grid_size);
494
g_object_set ((GtkMisc*) _tmp12_, "xalign", 0.0f, NULL);
489
495
_tmp13_ = self->name_label;
490
gtk_widget_show ((GtkWidget*) _tmp13_);
491
_tmp14_ = self->name_label;
492
gtk_grid_attach (name_grid, (GtkWidget*) _tmp14_, PROMPT_BOX_COL_NAME_LABEL, PROMPT_BOX_ROW_NAME, 1, 1);
493
_tmp15_ = cached_image_new (NULL);
494
_tmp16_ = g_object_ref_sink (_tmp15_);
496
_tmp14_ = self->priv->name_grid_height;
497
gtk_widget_set_size_request ((GtkWidget*) _tmp13_, -1, _tmp14_);
498
_tmp15_ = self->name_label;
499
gtk_widget_show ((GtkWidget*) _tmp15_);
500
_tmp16_ = self->name_label;
501
gtk_grid_attach (name_grid, (GtkWidget*) _tmp16_, PROMPT_BOX_COL_NAME_LABEL, PROMPT_BOX_ROW_NAME, 1, 1);
502
_tmp17_ = cached_image_new (NULL);
503
_tmp18_ = g_object_ref_sink (_tmp17_);
495
504
_g_object_unref0 (self->priv->message_image);
496
self->priv->message_image = _tmp16_;
505
self->priv->message_image = _tmp18_;
498
gchar* _tmp17_ = NULL;
507
gchar* _tmp19_ = NULL;
502
509
GdkPixbuf* _tmp21_;
503
CachedImage* _tmp22_;
504
511
GdkPixbuf* _tmp23_;
505
_tmp17_ = g_build_filename (PKGDATADIR, "message.png", NULL, NULL);
507
_tmp19_ = gdk_pixbuf_new_from_file (_tmp18_, &_inner_error_);
512
CachedImage* _tmp24_;
514
_tmp19_ = g_build_filename (PKGDATADIR, "message.png", NULL, NULL);
508
515
_tmp20_ = _tmp19_;
516
_tmp21_ = gdk_pixbuf_new_from_file (_tmp20_, &_inner_error_);
511
520
if (_inner_error_ != NULL) {
512
goto __catch9_g_error;
521
goto __catch10_g_error;
514
_tmp22_ = self->priv->message_image;
516
g_object_set ((GtkImage*) _tmp22_, "pixbuf", _tmp23_, NULL);
517
_g_object_unref0 (_tmp23_);
523
_tmp24_ = self->priv->message_image;
525
g_object_set ((GtkImage*) _tmp24_, "pixbuf", _tmp25_, NULL);
526
_g_object_unref0 (_tmp25_);
522
531
GError* e = NULL;
524
const gchar* _tmp25_;
533
const gchar* _tmp27_;
525
534
e = _inner_error_;
526
535
_inner_error_ = NULL;
528
_tmp25_ = _tmp24_->message;
529
g_debug ("prompt-box.vala:189: Error loading message image: %s", _tmp25_);
537
_tmp27_ = _tmp26_->message;
538
g_debug ("prompt-box.vala:195: Error loading message image: %s", _tmp27_);
530
539
_g_error_free0 (e);
533
542
if (_inner_error_ != NULL) {
534
543
_g_object_unref0 (name_grid);
535
544
g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
536
545
g_clear_error (&_inner_error_);
539
_tmp26_ = (GtkAlignment*) gtk_alignment_new (0.5f, 0.5f, 0.0f, 0.0f);
540
_tmp27_ = g_object_ref_sink (_tmp26_);
548
_tmp28_ = (GtkAlignment*) gtk_alignment_new (0.5f, 0.5f, 0.0f, 0.0f);
549
_tmp29_ = g_object_ref_sink (_tmp28_);
542
551
gtk_widget_set_valign ((GtkWidget*) align, GTK_ALIGN_START);
543
gtk_widget_set_size_request ((GtkWidget*) align, -1, grid_size);
544
_tmp28_ = self->priv->message_image;
545
gtk_container_add ((GtkContainer*) align, (GtkWidget*) _tmp28_);
552
gtk_widget_set_margin_top ((GtkWidget*) align, PROMPT_BOX_NAME_MARGIN_TOP);
553
_tmp30_ = self->priv->name_grid_height;
554
gtk_widget_set_size_request ((GtkWidget*) align, -1, _tmp30_);
555
_tmp31_ = self->priv->message_image;
556
gtk_container_add ((GtkContainer*) align, (GtkWidget*) _tmp31_);
546
557
gtk_widget_show ((GtkWidget*) align);
547
558
gtk_grid_attach (name_grid, (GtkWidget*) align, PROMPT_BOX_COL_NAME_MESSAGE, PROMPT_BOX_ROW_NAME, 1, 1);
548
_tmp29_ = (GtkButton*) gtk_button_new ();
549
_tmp30_ = g_object_ref_sink (_tmp29_);
559
_tmp32_ = (GtkButton*) gtk_button_new ();
560
_tmp33_ = g_object_ref_sink (_tmp32_);
550
561
_g_object_unref0 (self->option_button);
551
self->option_button = _tmp30_;
552
_tmp31_ = self->option_button;
553
gtk_widget_set_hexpand ((GtkWidget*) _tmp31_, TRUE);
554
_tmp32_ = self->option_button;
555
gtk_widget_set_halign ((GtkWidget*) _tmp32_, GTK_ALIGN_END);
556
_tmp33_ = self->option_button;
557
gtk_widget_set_valign ((GtkWidget*) _tmp33_, GTK_ALIGN_START);
562
self->option_button = _tmp33_;
558
563
_tmp34_ = self->option_button;
559
gtk_button_set_focus_on_click (_tmp34_, FALSE);
564
gtk_widget_set_hexpand ((GtkWidget*) _tmp34_, TRUE);
560
565
_tmp35_ = self->option_button;
561
gtk_button_set_relief (_tmp35_, GTK_RELIEF_NONE);
566
gtk_widget_set_halign ((GtkWidget*) _tmp35_, GTK_ALIGN_END);
562
567
_tmp36_ = self->option_button;
563
_tmp37_ = gtk_widget_get_accessible ((GtkWidget*) _tmp36_);
564
_tmp38_ = _ ("Session Options");
565
atk_object_set_name (_tmp37_, _tmp38_);
568
gtk_widget_set_valign ((GtkWidget*) _tmp36_, GTK_ALIGN_START);
569
_tmp37_ = self->option_button;
570
gtk_widget_set_margin_top ((GtkWidget*) _tmp37_, PROMPT_BOX_NAME_MARGIN_TOP);
571
_tmp38_ = self->option_button;
572
gtk_button_set_focus_on_click (_tmp38_, FALSE);
566
573
_tmp39_ = self->option_button;
567
g_signal_connect_object (_tmp39_, "clicked", (GCallback) _prompt_box_option_button_clicked_cb_gtk_button_clicked, self, 0);
568
_tmp40_ = cached_image_new (NULL);
569
_tmp41_ = g_object_ref_sink (_tmp40_);
570
_g_object_unref0 (self->priv->option_image);
571
self->priv->option_image = _tmp41_;
572
_tmp42_ = self->priv->option_image;
573
gtk_widget_show ((GtkWidget*) _tmp42_);
574
gtk_button_set_relief (_tmp39_, GTK_RELIEF_NONE);
575
_tmp40_ = self->option_button;
576
_tmp41_ = gtk_widget_get_accessible ((GtkWidget*) _tmp40_);
577
_tmp42_ = _ ("Session Options");
578
atk_object_set_name (_tmp41_, _tmp42_);
574
579
_tmp43_ = self->option_button;
575
unity_greeter_add_style_class ((GtkWidget*) _tmp43_);
576
_tmp44_ = self->option_button;
577
_tmp45_ = self->priv->option_image;
578
gtk_container_add ((GtkContainer*) _tmp44_, (GtkWidget*) _tmp45_);
579
_tmp46_ = self->option_button;
580
gtk_grid_attach (name_grid, (GtkWidget*) _tmp46_, PROMPT_BOX_COL_NAME_OPTIONS, PROMPT_BOX_ROW_NAME, 1, 1);
580
g_signal_connect_object (_tmp43_, "clicked", (GCallback) _prompt_box_option_button_clicked_cb_gtk_button_clicked, self, 0);
581
_tmp44_ = cached_image_new (NULL);
582
_tmp45_ = g_object_ref_sink (_tmp44_);
583
_g_object_unref0 (self->priv->option_image);
584
self->priv->option_image = _tmp45_;
585
_tmp46_ = self->priv->option_image;
586
gtk_widget_show ((GtkWidget*) _tmp46_);
587
_tmp47_ = self->option_button;
588
unity_greeter_add_style_class ((GtkWidget*) _tmp47_);
590
GtkCssProvider* _tmp48_;
591
GtkCssProvider* style;
593
GtkStyleContext* _tmp50_ = NULL;
594
_tmp48_ = gtk_css_provider_new ();
596
gtk_css_provider_load_from_data (style, "* {padding: 2px;}", (gssize) (-1), &_inner_error_);
597
if (_inner_error_ != NULL) {
598
_g_object_unref0 (style);
599
goto __catch11_g_error;
601
_tmp49_ = self->option_button;
602
_tmp50_ = gtk_widget_get_style_context ((GtkWidget*) _tmp49_);
603
gtk_style_context_add_provider (_tmp50_, (GtkStyleProvider*) style, (guint) GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
604
_g_object_unref0 (style);
611
const gchar* _tmp52_;
613
_inner_error_ = NULL;
615
_tmp52_ = _tmp51_->message;
616
g_debug ("prompt-box.vala:226: Internal error loading session chooser style: %s", _tmp52_);
620
if (_inner_error_ != NULL) {
621
_g_object_unref0 (align);
622
_g_object_unref0 (name_grid);
623
g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
624
g_clear_error (&_inner_error_);
627
_tmp53_ = self->option_button;
628
_tmp54_ = self->priv->option_image;
629
gtk_container_add ((GtkContainer*) _tmp53_, (GtkWidget*) _tmp54_);
630
_tmp55_ = self->option_button;
631
gtk_grid_attach (name_grid, (GtkWidget*) _tmp55_, PROMPT_BOX_COL_NAME_OPTIONS, PROMPT_BOX_ROW_NAME, 1, 1);
581
632
gtk_widget_show ((GtkWidget*) name_grid);
582
633
result = name_grid;
583
634
_g_object_unref0 (align);
638
692
_tmp8_.alpha = (gdouble) 1.0f;
639
693
gtk_widget_override_color ((GtkWidget*) _tmp7_, GTK_STATE_FLAG_NORMAL, &_tmp8_);
640
694
_tmp9_ = self->small_name_label;
641
g_object_set ((GtkMisc*) _tmp9_, "xalign", 0.0f, NULL);
695
gtk_widget_set_margin_top ((GtkWidget*) _tmp9_, PROMPT_BOX_NAME_MARGIN_TOP);
642
696
_tmp10_ = self->small_name_label;
643
gtk_widget_set_size_request ((GtkWidget*) _tmp10_, -1, grid_size);
697
g_object_set ((GtkMisc*) _tmp10_, "xalign", 0.0f, NULL);
644
698
_tmp11_ = self->small_name_label;
645
gtk_widget_show ((GtkWidget*) _tmp11_);
646
_tmp12_ = self->small_name_label;
647
gtk_grid_attach (small_name_grid, (GtkWidget*) _tmp12_, 1, 0, 1, 1);
648
_tmp13_ = cached_image_new (NULL);
649
_tmp14_ = g_object_ref_sink (_tmp13_);
699
_tmp12_ = self->priv->name_grid_height;
700
gtk_widget_set_size_request ((GtkWidget*) _tmp11_, -1, _tmp12_);
701
_tmp13_ = self->small_name_label;
702
gtk_widget_show ((GtkWidget*) _tmp13_);
703
_tmp14_ = self->small_name_label;
704
gtk_grid_attach (small_name_grid, (GtkWidget*) _tmp14_, 1, 0, 1, 1);
705
_tmp15_ = cached_image_new (NULL);
706
_tmp16_ = g_object_ref_sink (_tmp15_);
650
707
_g_object_unref0 (self->priv->small_message_image);
651
self->priv->small_message_image = _tmp14_;
652
_tmp15_ = self->priv->small_message_image;
653
_tmp16_ = self->priv->message_image;
654
g_object_get ((GtkImage*) _tmp16_, "pixbuf", &_tmp17_, NULL);
657
g_object_set ((GtkImage*) _tmp15_, "pixbuf", _tmp19_, NULL);
658
_g_object_unref0 (_tmp19_);
659
_tmp20_ = (GtkAlignment*) gtk_alignment_new (0.5f, 0.5f, 0.0f, 0.0f);
660
_tmp21_ = g_object_ref_sink (_tmp20_);
662
gtk_widget_set_size_request ((GtkWidget*) align, -1, grid_size);
663
_tmp22_ = self->priv->small_message_image;
664
gtk_container_add ((GtkContainer*) align, (GtkWidget*) _tmp22_);
708
self->priv->small_message_image = _tmp16_;
709
_tmp17_ = self->priv->small_message_image;
710
_tmp18_ = self->priv->message_image;
711
g_object_get ((GtkImage*) _tmp18_, "pixbuf", &_tmp19_, NULL);
714
g_object_set ((GtkImage*) _tmp17_, "pixbuf", _tmp21_, NULL);
715
_g_object_unref0 (_tmp21_);
716
_tmp22_ = (GtkAlignment*) gtk_alignment_new (0.5f, 0.5f, 0.0f, 0.0f);
717
_tmp23_ = g_object_ref_sink (_tmp22_);
719
gtk_widget_set_margin_top ((GtkWidget*) align, PROMPT_BOX_NAME_MARGIN_TOP);
720
_tmp24_ = self->priv->name_grid_height;
721
gtk_widget_set_size_request ((GtkWidget*) align, -1, _tmp24_);
722
_tmp25_ = self->priv->small_message_image;
723
gtk_container_add ((GtkContainer*) align, (GtkWidget*) _tmp25_);
665
724
gtk_widget_show ((GtkWidget*) align);
666
725
gtk_grid_attach (small_name_grid, (GtkWidget*) align, 2, 0, 1, 1);
667
726
gtk_widget_show ((GtkWidget*) small_name_grid);
2272
2332
_tmp37_ = self->priv->small_active_indicator;
2273
2333
gtk_widget_set_valign ((GtkWidget*) _tmp37_, GTK_ALIGN_CENTER);
2274
2334
_tmp38_ = self->priv->small_active_indicator;
2275
gtk_widget_show ((GtkWidget*) _tmp38_);
2276
_tmp39_ = small_box_grid;
2277
_tmp40_ = self->priv->small_active_indicator;
2278
gtk_grid_attach (_tmp39_, (GtkWidget*) _tmp40_, 0, 0, 1, 1);
2279
_tmp41_ = prompt_box_create_small_name_grid (self);
2280
small_name_grid = _tmp41_;
2281
_tmp42_ = small_box_grid;
2282
_tmp43_ = small_name_grid;
2283
gtk_grid_attach (_tmp42_, (GtkWidget*) _tmp43_, 1, 0, 1, 1);
2284
_tmp44_ = active_indicator_new ();
2285
_tmp45_ = g_object_ref_sink (_tmp44_);
2286
small_dummy_indicator = _tmp45_;
2287
_tmp46_ = small_dummy_indicator;
2288
gtk_widget_show ((GtkWidget*) _tmp46_);
2289
_tmp47_ = small_box_grid;
2290
_tmp48_ = small_dummy_indicator;
2291
gtk_grid_attach (_tmp47_, (GtkWidget*) _tmp48_, 3, 0, 1, 1);
2292
_tmp49_ = (GtkEventBox*) gtk_event_box_new ();
2293
_tmp50_ = g_object_ref_sink (_tmp49_);
2294
small_box_eventbox = _tmp50_;
2295
_tmp51_ = small_box_eventbox;
2296
gtk_event_box_set_visible_window (_tmp51_, FALSE);
2335
gtk_widget_set_margin_top ((GtkWidget*) _tmp38_, PROMPT_BOX_NAME_MARGIN_TOP);
2336
_tmp39_ = self->priv->small_active_indicator;
2337
gtk_widget_show ((GtkWidget*) _tmp39_);
2338
_tmp40_ = small_box_grid;
2339
_tmp41_ = self->priv->small_active_indicator;
2340
gtk_grid_attach (_tmp40_, (GtkWidget*) _tmp41_, 0, 0, 1, 1);
2341
_tmp42_ = prompt_box_create_small_name_grid (self);
2342
small_name_grid = _tmp42_;
2343
_tmp43_ = small_box_grid;
2344
_tmp44_ = small_name_grid;
2345
gtk_grid_attach (_tmp43_, (GtkWidget*) _tmp44_, 1, 0, 1, 1);
2346
_tmp45_ = active_indicator_new ();
2347
_tmp46_ = g_object_ref_sink (_tmp45_);
2348
small_dummy_indicator = _tmp46_;
2349
_tmp47_ = small_dummy_indicator;
2350
gtk_widget_show ((GtkWidget*) _tmp47_);
2351
_tmp48_ = small_box_grid;
2352
_tmp49_ = small_dummy_indicator;
2353
gtk_grid_attach (_tmp48_, (GtkWidget*) _tmp49_, 3, 0, 1, 1);
2354
_tmp50_ = (GtkEventBox*) gtk_event_box_new ();
2355
_tmp51_ = g_object_ref_sink (_tmp50_);
2356
small_box_eventbox = _tmp51_;
2297
2357
_tmp52_ = small_box_eventbox;
2298
g_signal_connect_object ((GtkWidget*) _tmp52_, "button-release-event", (GCallback) __prompt_box___lambda16__gtk_widget_button_release_event, self, 0);
2358
gtk_event_box_set_visible_window (_tmp52_, FALSE);
2299
2359
_tmp53_ = small_box_eventbox;
2300
_tmp54_ = small_box_grid;
2301
gtk_container_add ((GtkContainer*) _tmp53_, (GtkWidget*) _tmp54_);
2302
_tmp55_ = small_box_eventbox;
2303
gtk_widget_show ((GtkWidget*) _tmp55_);
2360
g_signal_connect_object ((GtkWidget*) _tmp53_, "button-release-event", (GCallback) __prompt_box___lambda16__gtk_widget_button_release_event, self, 0);
2361
_tmp54_ = small_box_eventbox;
2362
_tmp55_ = small_box_grid;
2363
gtk_container_add ((GtkContainer*) _tmp54_, (GtkWidget*) _tmp55_);
2304
2364
_tmp56_ = small_box_eventbox;
2305
_tmp57_ = _g_object_ref0 ((GtkWidget*) _tmp56_);
2365
gtk_widget_show ((GtkWidget*) _tmp56_);
2366
_tmp57_ = small_box_eventbox;
2367
_tmp58_ = _g_object_ref0 ((GtkWidget*) _tmp57_);
2306
2368
_g_object_unref0 (self->small_box_widget);
2307
self->small_box_widget = _tmp57_;
2308
_tmp58_ = self->priv->fixed;
2309
_tmp59_ = self->small_box_widget;
2310
gtk_container_add ((GtkContainer*) _tmp58_, _tmp59_);
2311
_tmp60_ = self->priv->fixed;
2312
_tmp61_ = self->box_grid;
2313
gtk_container_add ((GtkContainer*) _tmp60_, (GtkWidget*) _tmp61_);
2369
self->small_box_widget = _tmp58_;
2370
_tmp59_ = self->priv->fixed;
2371
_tmp60_ = self->small_box_widget;
2372
gtk_container_add ((GtkContainer*) _tmp59_, _tmp60_);
2373
_tmp61_ = self->priv->fixed;
2374
_tmp62_ = self->box_grid;
2375
gtk_container_add ((GtkContainer*) _tmp61_, (GtkWidget*) _tmp62_);
2314
2376
_g_object_unref0 (small_box_eventbox);
2315
2377
_g_object_unref0 (small_dummy_indicator);
2316
2378
_g_object_unref0 (small_name_grid);