~ubuntu-multiseat/ubuntu/saucy/unity-greeter/bug1201122

« back to all changes in this revision

Viewing changes to src/prompt-box.c

Tags: upstream-12.10.3
ImportĀ upstreamĀ versionĀ 12.10.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
187
187
        gdouble _position;
188
188
        GtkFixed* fixed;
189
189
        GtkWidget* zone;
 
190
        gint name_grid_height;
190
191
        ActiveIndicator* active_indicator;
191
192
        CachedImage* option_image;
192
193
        CachedImage* message_image;
250
251
        PROMPT_BOX_LABEL,
251
252
        PROMPT_BOX_POSITION
252
253
};
 
254
#define grid_size 40
 
255
#define PROMPT_BOX_NAME_MARGIN_TOP 12
253
256
#define PROMPT_BOX_COL_ACTIVE 0
254
257
#define PROMPT_BOX_COL_CONTENT 1
255
258
#define PROMPT_BOX_COL_SPACER 2
266
269
static GtkGrid* prompt_box_real_create_name_grid (PromptBox* self);
267
270
FadingLabel* fading_label_new (const gchar* text);
268
271
FadingLabel* fading_label_construct (GType object_type, const gchar* text);
269
 
#define grid_size 40
270
272
CachedImage* cached_image_new (GdkPixbuf* pixbuf);
271
273
CachedImage* cached_image_construct (GType object_type, GdkPixbuf* pixbuf);
272
274
static void prompt_box_option_button_clicked_cb (PromptBox* self, GtkButton* button);
432
434
        FadingLabel* _tmp11_;
433
435
        FadingLabel* _tmp12_;
434
436
        FadingLabel* _tmp13_;
435
 
        FadingLabel* _tmp14_;
436
 
        CachedImage* _tmp15_;
437
 
        CachedImage* _tmp16_;
438
 
        GtkAlignment* _tmp26_;
439
 
        GtkAlignment* _tmp27_;
 
437
        gint _tmp14_;
 
438
        FadingLabel* _tmp15_;
 
439
        FadingLabel* _tmp16_;
 
440
        CachedImage* _tmp17_;
 
441
        CachedImage* _tmp18_;
 
442
        GtkAlignment* _tmp28_;
 
443
        GtkAlignment* _tmp29_;
440
444
        GtkAlignment* align;
441
 
        CachedImage* _tmp28_;
442
 
        GtkButton* _tmp29_;
443
 
        GtkButton* _tmp30_;
444
 
        GtkButton* _tmp31_;
 
445
        gint _tmp30_;
 
446
        CachedImage* _tmp31_;
445
447
        GtkButton* _tmp32_;
446
448
        GtkButton* _tmp33_;
447
449
        GtkButton* _tmp34_;
448
450
        GtkButton* _tmp35_;
449
451
        GtkButton* _tmp36_;
450
 
        AtkObject* _tmp37_ = NULL;
451
 
        const gchar* _tmp38_ = NULL;
 
452
        GtkButton* _tmp37_;
 
453
        GtkButton* _tmp38_;
452
454
        GtkButton* _tmp39_;
453
 
        CachedImage* _tmp40_;
454
 
        CachedImage* _tmp41_;
455
 
        CachedImage* _tmp42_;
 
455
        GtkButton* _tmp40_;
 
456
        AtkObject* _tmp41_ = NULL;
 
457
        const gchar* _tmp42_ = NULL;
456
458
        GtkButton* _tmp43_;
457
 
        GtkButton* _tmp44_;
 
459
        CachedImage* _tmp44_;
458
460
        CachedImage* _tmp45_;
459
 
        GtkButton* _tmp46_;
 
461
        CachedImage* _tmp46_;
 
462
        GtkButton* _tmp47_;
 
463
        GtkButton* _tmp53_;
 
464
        CachedImage* _tmp54_;
 
465
        GtkButton* _tmp55_;
460
466
        GError * _inner_error_ = NULL;
461
467
        _tmp0_ = (GtkGrid*) gtk_grid_new ();
462
468
        _tmp1_ = g_object_ref_sink (_tmp0_);
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_;
497
506
        {
498
 
                gchar* _tmp17_ = NULL;
499
 
                gchar* _tmp18_;
500
 
                GdkPixbuf* _tmp19_;
501
 
                GdkPixbuf* _tmp20_;
 
507
                gchar* _tmp19_ = NULL;
 
508
                gchar* _tmp20_;
502
509
                GdkPixbuf* _tmp21_;
503
 
                CachedImage* _tmp22_;
 
510
                GdkPixbuf* _tmp22_;
504
511
                GdkPixbuf* _tmp23_;
505
 
                _tmp17_ = g_build_filename (PKGDATADIR, "message.png", NULL, NULL);
506
 
                _tmp18_ = _tmp17_;
507
 
                _tmp19_ = gdk_pixbuf_new_from_file (_tmp18_, &_inner_error_);
 
512
                CachedImage* _tmp24_;
 
513
                GdkPixbuf* _tmp25_;
 
514
                _tmp19_ = g_build_filename (PKGDATADIR, "message.png", NULL, NULL);
508
515
                _tmp20_ = _tmp19_;
509
 
                _g_free0 (_tmp18_);
510
 
                _tmp21_ = _tmp20_;
 
516
                _tmp21_ = gdk_pixbuf_new_from_file (_tmp20_, &_inner_error_);
 
517
                _tmp22_ = _tmp21_;
 
518
                _g_free0 (_tmp20_);
 
519
                _tmp23_ = _tmp22_;
511
520
                if (_inner_error_ != NULL) {
512
 
                        goto __catch9_g_error;
 
521
                        goto __catch10_g_error;
513
522
                }
514
 
                _tmp22_ = self->priv->message_image;
515
 
                _tmp23_ = _tmp21_;
516
 
                g_object_set ((GtkImage*) _tmp22_, "pixbuf", _tmp23_, NULL);
517
 
                _g_object_unref0 (_tmp23_);
 
523
                _tmp24_ = self->priv->message_image;
 
524
                _tmp25_ = _tmp23_;
 
525
                g_object_set ((GtkImage*) _tmp24_, "pixbuf", _tmp25_, NULL);
 
526
                _g_object_unref0 (_tmp25_);
518
527
        }
519
 
        goto __finally9;
520
 
        __catch9_g_error:
 
528
        goto __finally10;
 
529
        __catch10_g_error:
521
530
        {
522
531
                GError* e = NULL;
523
 
                GError* _tmp24_;
524
 
                const gchar* _tmp25_;
 
532
                GError* _tmp26_;
 
533
                const gchar* _tmp27_;
525
534
                e = _inner_error_;
526
535
                _inner_error_ = NULL;
527
 
                _tmp24_ = e;
528
 
                _tmp25_ = _tmp24_->message;
529
 
                g_debug ("prompt-box.vala:189: Error loading message image: %s", _tmp25_);
 
536
                _tmp26_ = e;
 
537
                _tmp27_ = _tmp26_->message;
 
538
                g_debug ("prompt-box.vala:195: Error loading message image: %s", _tmp27_);
530
539
                _g_error_free0 (e);
531
540
        }
532
 
        __finally9:
 
541
        __finally10:
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_);
537
546
                return NULL;
538
547
        }
539
 
        _tmp26_ = (GtkAlignment*) gtk_alignment_new (0.5f, 0.5f, 0.0f, 0.0f);
540
 
        _tmp27_ = g_object_ref_sink (_tmp26_);
541
 
        align = _tmp27_;
 
548
        _tmp28_ = (GtkAlignment*) gtk_alignment_new (0.5f, 0.5f, 0.0f, 0.0f);
 
549
        _tmp29_ = g_object_ref_sink (_tmp28_);
 
550
        align = _tmp29_;
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_);
 
589
        {
 
590
                GtkCssProvider* _tmp48_;
 
591
                GtkCssProvider* style;
 
592
                GtkButton* _tmp49_;
 
593
                GtkStyleContext* _tmp50_ = NULL;
 
594
                _tmp48_ = gtk_css_provider_new ();
 
595
                style = _tmp48_;
 
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;
 
600
                }
 
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);
 
605
        }
 
606
        goto __finally11;
 
607
        __catch11_g_error:
 
608
        {
 
609
                GError* e = NULL;
 
610
                GError* _tmp51_;
 
611
                const gchar* _tmp52_;
 
612
                e = _inner_error_;
 
613
                _inner_error_ = NULL;
 
614
                _tmp51_ = e;
 
615
                _tmp52_ = _tmp51_->message;
 
616
                g_debug ("prompt-box.vala:226: Internal error loading session chooser style: %s", _tmp52_);
 
617
                _g_error_free0 (e);
 
618
        }
 
619
        __finally11:
 
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_);
 
625
                return NULL;
 
626
        }
 
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);
606
657
        FadingLabel* _tmp9_;
607
658
        FadingLabel* _tmp10_;
608
659
        FadingLabel* _tmp11_;
609
 
        FadingLabel* _tmp12_;
610
 
        CachedImage* _tmp13_;
611
 
        CachedImage* _tmp14_;
 
660
        gint _tmp12_;
 
661
        FadingLabel* _tmp13_;
 
662
        FadingLabel* _tmp14_;
612
663
        CachedImage* _tmp15_;
613
664
        CachedImage* _tmp16_;
614
 
        GdkPixbuf* _tmp17_ = NULL;
615
 
        GdkPixbuf* _tmp18_;
616
 
        GdkPixbuf* _tmp19_;
617
 
        GtkAlignment* _tmp20_;
618
 
        GtkAlignment* _tmp21_;
 
665
        CachedImage* _tmp17_;
 
666
        CachedImage* _tmp18_;
 
667
        GdkPixbuf* _tmp19_ = NULL;
 
668
        GdkPixbuf* _tmp20_;
 
669
        GdkPixbuf* _tmp21_;
 
670
        GtkAlignment* _tmp22_;
 
671
        GtkAlignment* _tmp23_;
619
672
        GtkAlignment* align;
620
 
        CachedImage* _tmp22_;
 
673
        gint _tmp24_;
 
674
        CachedImage* _tmp25_;
621
675
        _tmp0_ = (GtkGrid*) gtk_grid_new ();
622
676
        _tmp1_ = g_object_ref_sink (_tmp0_);
623
677
        small_name_grid = _tmp1_;
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);
655
 
        _tmp18_ = _tmp17_;
656
 
        _tmp19_ = _tmp18_;
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_);
661
 
        align = _tmp21_;
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);
 
712
        _tmp20_ = _tmp19_;
 
713
        _tmp21_ = _tmp20_;
 
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_);
 
718
        align = _tmp23_;
 
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);
2170
2229
        ActiveIndicator* _tmp36_;
2171
2230
        ActiveIndicator* _tmp37_;
2172
2231
        ActiveIndicator* _tmp38_;
2173
 
        GtkGrid* _tmp39_;
2174
 
        ActiveIndicator* _tmp40_;
2175
 
        GtkGrid* _tmp41_ = NULL;
 
2232
        ActiveIndicator* _tmp39_;
 
2233
        GtkGrid* _tmp40_;
 
2234
        ActiveIndicator* _tmp41_;
 
2235
        GtkGrid* _tmp42_ = NULL;
2176
2236
        GtkGrid* small_name_grid;
2177
 
        GtkGrid* _tmp42_;
2178
2237
        GtkGrid* _tmp43_;
2179
 
        ActiveIndicator* _tmp44_;
 
2238
        GtkGrid* _tmp44_;
2180
2239
        ActiveIndicator* _tmp45_;
 
2240
        ActiveIndicator* _tmp46_;
2181
2241
        ActiveIndicator* small_dummy_indicator;
2182
 
        ActiveIndicator* _tmp46_;
2183
 
        GtkGrid* _tmp47_;
2184
 
        ActiveIndicator* _tmp48_;
2185
 
        GtkEventBox* _tmp49_;
 
2242
        ActiveIndicator* _tmp47_;
 
2243
        GtkGrid* _tmp48_;
 
2244
        ActiveIndicator* _tmp49_;
2186
2245
        GtkEventBox* _tmp50_;
 
2246
        GtkEventBox* _tmp51_;
2187
2247
        GtkEventBox* small_box_eventbox;
2188
 
        GtkEventBox* _tmp51_;
2189
2248
        GtkEventBox* _tmp52_;
2190
2249
        GtkEventBox* _tmp53_;
2191
 
        GtkGrid* _tmp54_;
2192
 
        GtkEventBox* _tmp55_;
 
2250
        GtkEventBox* _tmp54_;
 
2251
        GtkGrid* _tmp55_;
2193
2252
        GtkEventBox* _tmp56_;
2194
 
        GtkWidget* _tmp57_;
2195
 
        GtkFixed* _tmp58_;
2196
 
        GtkWidget* _tmp59_;
2197
 
        GtkFixed* _tmp60_;
2198
 
        GtkGrid* _tmp61_;
 
2253
        GtkEventBox* _tmp57_;
 
2254
        GtkWidget* _tmp58_;
 
2255
        GtkFixed* _tmp59_;
 
2256
        GtkWidget* _tmp60_;
 
2257
        GtkFixed* _tmp61_;
 
2258
        GtkGrid* _tmp62_;
2199
2259
        parent_class = G_OBJECT_CLASS (prompt_box_parent_class);
2200
2260
        obj = parent_class->constructor (type, n_construct_properties, construct_properties);
2201
2261
        self = PROMPT_BOX (obj);
2232
2292
        _tmp13_ = self->priv->active_indicator;
2233
2293
        gtk_widget_set_valign ((GtkWidget*) _tmp13_, GTK_ALIGN_START);
2234
2294
        _tmp14_ = self->priv->active_indicator;
2235
 
        gtk_widget_set_margin_top ((GtkWidget*) _tmp14_, 18);
 
2295
        gtk_widget_set_margin_top ((GtkWidget*) _tmp14_, 12 + PROMPT_BOX_NAME_MARGIN_TOP);
2236
2296
        _tmp15_ = self->priv->active_indicator;
2237
2297
        gtk_widget_show ((GtkWidget*) _tmp15_);
2238
2298
        _tmp16_ = self->box_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);
2351
2413
        self->priv = PROMPT_BOX_GET_PRIVATE (self);
2352
2414
        self->priv->_has_errors = FALSE;
2353
2415
        self->priv->_position = (gdouble) 0;
 
2416
        self->priv->name_grid_height = grid_size - PROMPT_BOX_NAME_MARGIN_TOP;
2354
2417
        self->priv->prompt_visibility = PROMPT_BOX_PROMPT_VISIBILITY_HIDDEN;
2355
2418
}
2356
2419