~ubuntu-branches/ubuntu/trusty/unity-greeter/trusty

« back to all changes in this revision

Viewing changes to src/unity-greeter.c

  • Committer: Package Import Robot
  • Author(s): Michael Terry
  • Date: 2013-03-15 14:04:08 UTC
  • mfrom: (1.1.22)
  • Revision ID: package-import@ubuntu.com-20130315140408-m2kwmrmxtyn0j9hk
Tags: 13.04.2-0ubuntu1
* New upstream release.
  - Fix duplicate entries showing for multiple users on the same remote
    login service.
  - Add custom indicator support for system administrators (LP: #1155157)
* debian/control:
  - Switch Vcs-Bzr to point at Unity Greeter trunk, since we are inlining
    the packaging
  - Use debhelper 9
* debian/rules:
  - Use upstream ./autogen.sh for autoreconf
* debian/patches/do-not-read-password.patch,
  debian/patches/move-nm-applet.patch,
  debian/patches/spawn-gsd-directly.patch:
  - Drop, included upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
#include "sys/mman.h"
42
42
#include <locale.h>
43
43
#include <glib/gi18n-lib.h>
 
44
#include "config.h"
44
45
#include <unistd.h>
45
46
#include <float.h>
46
47
#include <math.h>
160
161
        volatile int ref_count;
161
162
        UnityGreeterPrivate * priv;
162
163
        gboolean test_mode;
 
164
        gboolean orca_needs_kick;
163
165
};
164
166
 
165
167
struct _UnityGreeterClass {
388
390
        unity_greeter_singleton = _tmp0_;
389
391
        _tmp1_ = test_mode_;
390
392
        self->test_mode = _tmp1_;
391
 
        g_debug ("unity-greeter.vala:54: Creating background surface");
 
393
        g_debug ("unity-greeter.vala:55: Creating background surface");
392
394
        _tmp2_ = gdk_screen_get_default ();
393
395
        _tmp3_ = unity_greeter_create_root_surface (_tmp2_);
394
396
        _cairo_surface_destroy0 (self->priv->background_surface);
413
415
                _tmp10_ = lightdm_greeter_connect_sync (_tmp9_, &_inner_error_);
414
416
                _tmp11_ = _tmp10_;
415
417
                if (_inner_error_ != NULL) {
416
 
                        goto __catch20_g_error;
 
418
                        goto __catch23_g_error;
417
419
                }
418
420
                connected = _tmp11_;
419
421
        }
420
 
        goto __finally20;
421
 
        __catch20_g_error:
 
422
        goto __finally23;
 
423
        __catch23_g_error:
422
424
        {
423
425
                GError* e = NULL;
424
426
                e = _inner_error_;
425
427
                _inner_error_ = NULL;
426
 
                g_warning ("unity-greeter.vala:69: Failed to connect to LightDM daemon");
 
428
                g_warning ("unity-greeter.vala:70: Failed to connect to LightDM daemon");
427
429
                _g_error_free0 (e);
428
430
        }
429
 
        __finally20:
 
431
        __finally23:
430
432
        if (_inner_error_ != NULL) {
431
433
                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);
432
434
                g_clear_error (&_inner_error_);
471
473
                _tmp24_ = self->priv->state_file;
472
474
                g_key_file_load_from_file (_tmp23_, _tmp24_, G_KEY_FILE_NONE, &_inner_error_);
473
475
                if (_inner_error_ != NULL) {
474
 
                        goto __catch21_g_error;
 
476
                        goto __catch24_g_error;
475
477
                }
476
478
        }
477
 
        goto __finally21;
478
 
        __catch21_g_error:
 
479
        goto __finally24;
 
480
        __catch24_g_error:
479
481
        {
480
482
                GError* e = NULL;
481
483
                GError* _tmp25_;
489
491
                        _tmp26_ = self->priv->state_file;
490
492
                        _tmp27_ = e;
491
493
                        _tmp28_ = _tmp27_->message;
492
 
                        g_warning ("unity-greeter.vala:92: Failed to load state from %s: %s\n", _tmp26_, _tmp28_);
 
494
                        g_warning ("unity-greeter.vala:93: Failed to load state from %s: %s\n", _tmp26_, _tmp28_);
493
495
                }
494
496
                _g_error_free0 (e);
495
497
        }
496
 
        __finally21:
 
498
        __finally24:
497
499
        if (_inner_error_ != NULL) {
498
500
                _g_free0 (state_dir);
499
501
                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);
531
533
                _tmp2_ = g_key_file_get_value (_tmp0_, "greeter", _tmp1_, &_inner_error_);
532
534
                _tmp3_ = _tmp2_;
533
535
                if (_inner_error_ != NULL) {
534
 
                        goto __catch22_g_error;
 
536
                        goto __catch25_g_error;
535
537
                }
536
538
                result = _tmp3_;
537
539
                return result;
538
540
        }
539
 
        goto __finally22;
540
 
        __catch22_g_error:
 
541
        goto __finally25;
 
542
        __catch25_g_error:
541
543
        {
542
544
                GError* e = NULL;
543
545
                e = _inner_error_;
546
548
                _g_error_free0 (e);
547
549
                return result;
548
550
        }
549
 
        __finally22:
 
551
        __finally25:
550
552
        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);
551
553
        g_clear_error (&_inner_error_);
552
554
        return NULL;
576
578
                _tmp5_ = self->priv->state_file;
577
579
                g_file_set_contents (_tmp5_, data, (gssize) (-1), &_inner_error_);
578
580
                if (_inner_error_ != NULL) {
579
 
                        goto __catch23_g_error;
 
581
                        goto __catch26_g_error;
580
582
                }
581
583
        }
582
 
        goto __finally23;
583
 
        __catch23_g_error:
 
584
        goto __finally26;
 
585
        __catch26_g_error:
584
586
        {
585
587
                GError* e = NULL;
586
588
                GError* _tmp6_;
589
591
                _inner_error_ = NULL;
590
592
                _tmp6_ = e;
591
593
                _tmp7_ = _tmp6_->message;
592
 
                g_debug ("unity-greeter.vala:123: Failed to write state: %s", _tmp7_);
 
594
                g_debug ("unity-greeter.vala:124: Failed to write state: %s", _tmp7_);
593
595
                _g_error_free0 (e);
594
596
        }
595
 
        __finally23:
 
597
        __finally26:
596
598
        if (_inner_error_ != NULL) {
597
599
                _g_free0 (data);
598
600
                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);
704
706
        unity_greeter_refresh_background (_tmp4_, _tmp5_);
705
707
        _tmp6_ = self->test_mode;
706
708
        if (_tmp6_) {
707
 
                g_debug ("unity-greeter.vala:164: Successfully logged in!  Quitting...");
 
709
                g_debug ("unity-greeter.vala:165: Successfully logged in!  Quitting...");
708
710
                gtk_main_quit ();
709
711
        } else {
710
712
                g_signal_emit_by_name (self, "starting-session");
715
717
                        _tmp8_ = session;
716
718
                        lightdm_greeter_start_session_sync (_tmp7_, _tmp8_, &_inner_error_);
717
719
                        if (_inner_error_ != NULL) {
718
 
                                goto __catch24_g_error;
 
720
                                goto __catch27_g_error;
719
721
                        }
720
722
                }
721
 
                goto __finally24;
722
 
                __catch24_g_error:
 
723
                goto __finally27;
 
724
                __catch27_g_error:
723
725
                {
724
726
                        GError* e = NULL;
725
727
                        GError* _tmp9_;
728
730
                        _inner_error_ = NULL;
729
731
                        _tmp9_ = e;
730
732
                        _tmp10_ = _tmp9_->message;
731
 
                        g_warning ("unity-greeter.vala:176: Failed to start session: %s", _tmp10_);
 
733
                        g_warning ("unity-greeter.vala:177: Failed to start session: %s", _tmp10_);
732
734
                        _g_error_free0 (e);
733
735
                }
734
 
                __finally24:
 
736
                __finally27:
735
737
                if (_inner_error_ != NULL) {
736
738
                        _cairo_destroy0 (c);
737
739
                        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);
748
750
        ca_context* _tmp0_ = NULL;
749
751
        gboolean _tmp1_ = FALSE;
750
752
        g_return_val_if_fail (self != NULL, FALSE);
751
 
        g_debug ("unity-greeter.vala:183: starting system-ready sound");
 
753
        g_debug ("unity-greeter.vala:184: starting system-ready sound");
752
754
        ca_context_create (&_tmp0_);
753
755
        _ca_context_destroy0 (self->priv->canberra_context);
754
756
        self->priv->canberra_context = _tmp0_;
769
771
        GdkWindow* _tmp2_ = NULL;
770
772
        MainWindow* _tmp3_;
771
773
        g_return_if_fail (self != NULL);
772
 
        g_debug ("unity-greeter.vala:200: Showing main window");
 
774
        g_debug ("unity-greeter.vala:201: Showing main window");
773
775
        _tmp0_ = self->priv->main_window;
774
776
        gtk_widget_show ((GtkWidget*) _tmp0_);
775
777
        _tmp1_ = self->priv->main_window;
1353
1355
        GOptionGroup* _tmp24_ = NULL;
1354
1356
        gboolean _tmp34_;
1355
1357
        gboolean _tmp36_;
1356
 
        gboolean _tmp37_;
1357
 
        GtkSettings* _tmp40_ = NULL;
1358
 
        GtkSettings* _tmp41_;
 
1358
        GtkSettings* _tmp37_ = NULL;
 
1359
        GtkSettings* _tmp38_;
1359
1360
        GtkSettings* settings;
1360
 
        gchar* _tmp42_ = NULL;
 
1361
        gchar* _tmp39_ = NULL;
1361
1362
        gchar* value;
1362
 
        const gchar* _tmp43_;
1363
 
        gchar* _tmp46_ = NULL;
1364
 
        const gchar* _tmp47_;
1365
 
        gchar* _tmp50_ = NULL;
1366
 
        const gchar* _tmp51_;
1367
 
        gdouble _tmp54_ = 0.0;
 
1363
        const gchar* _tmp40_;
 
1364
        gchar* _tmp43_ = NULL;
 
1365
        const gchar* _tmp44_;
 
1366
        gchar* _tmp47_ = NULL;
 
1367
        const gchar* _tmp48_;
 
1368
        gdouble _tmp51_ = 0.0;
1368
1369
        gdouble double_value;
1369
 
        gdouble _tmp55_;
1370
 
        gboolean _tmp58_ = FALSE;
 
1370
        gdouble _tmp52_;
 
1371
        gboolean _tmp55_ = FALSE;
1371
1372
        gboolean boolean_value;
1372
 
        GtkSettings* _tmp59_;
1373
 
        gboolean _tmp60_;
1374
 
        gchar* _tmp61_ = NULL;
1375
 
        const gchar* _tmp62_;
1376
 
        gchar* _tmp65_ = NULL;
1377
 
        const gchar* _tmp66_;
 
1373
        GtkSettings* _tmp56_;
 
1374
        gboolean _tmp57_;
 
1375
        gchar* _tmp58_ = NULL;
 
1376
        const gchar* _tmp59_;
 
1377
        gchar* _tmp62_ = NULL;
 
1378
        const gchar* _tmp63_;
 
1379
        gboolean _tmp66_;
 
1380
        UnityGreeter* _tmp67_;
 
1381
        UnityGreeter* greeter;
 
1382
        UnityGreeter* _tmp68_;
1378
1383
        gboolean _tmp69_;
1379
 
        UnityGreeter* _tmp70_;
1380
 
        UnityGreeter* greeter;
1381
 
        UnityGreeter* _tmp71_;
1382
1384
        GPid _tmp72_;
1383
1385
        GError * _inner_error_ = NULL;
1384
1386
        mlockall (MCL_CURRENT | MCL_FUTURE);
1405
1407
                _argv_size_ = argv_length1;
1406
1408
                if (_inner_error_ != NULL) {
1407
1409
                        argv = (_vala_array_free (argv, argv_length1, (GDestroyNotify) g_free), NULL);
1408
 
                        goto __catch25_g_error;
 
1410
                        goto __catch28_g_error;
1409
1411
                }
1410
1412
                _tmp2_ = argv;
1411
1413
                _tmp2__length1 = argv_length1;
1413
1415
                atspi_pid = _tmp3_;
1414
1416
                if (_inner_error_ != NULL) {
1415
1417
                        argv = (_vala_array_free (argv, argv_length1, (GDestroyNotify) g_free), NULL);
1416
 
                        goto __catch25_g_error;
 
1418
                        goto __catch28_g_error;
1417
1419
                }
1418
1420
                argv = (_vala_array_free (argv, argv_length1, (GDestroyNotify) g_free), NULL);
1419
1421
        }
1420
 
        goto __finally25;
1421
 
        __catch25_g_error:
 
1422
        goto __finally28;
 
1423
        __catch28_g_error:
1422
1424
        {
1423
1425
                GError* e = NULL;
1424
1426
                GError* _tmp4_;
1427
1429
                _inner_error_ = NULL;
1428
1430
                _tmp4_ = e;
1429
1431
                _tmp5_ = _tmp4_->message;
1430
 
                g_warning ("unity-greeter.vala:432: Error starting the at-spi registry: %s", _tmp5_);
 
1432
                g_warning ("unity-greeter.vala:433: Error starting the at-spi registry: %s", _tmp5_);
1431
1433
                _g_error_free0 (e);
1432
1434
        }
1433
 
        __finally25:
 
1435
        __finally28:
1434
1436
        if (_inner_error_ != NULL) {
1435
1437
                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);
1436
1438
                g_clear_error (&_inner_error_);
1443
1445
        g_log_set_default_handler (_unity_greeter_log_cb_glog_func, NULL);
1444
1446
        _tmp7_ = getuid ();
1445
1447
        _tmp8_ = g_getenv ("LANG");
1446
 
        g_debug ("unity-greeter.vala:440: Starting unity-greeter %s UID=%d LANG=%s", VERSION, (gint) _tmp7_, _tmp8_);
1447
 
        g_debug ("unity-greeter.vala:443: Setting cursor");
 
1448
        g_debug ("unity-greeter.vala:441: Starting unity-greeter %s UID=%d LANG=%s", VERSION, (gint) _tmp7_, _tmp8_);
 
1449
        g_debug ("unity-greeter.vala:444: Setting cursor");
1448
1450
        _tmp9_ = gdk_get_default_root_window ();
1449
1451
        _tmp10_ = gdk_cursor_new (GDK_LEFT_PTR);
1450
1452
        _tmp11_ = _tmp10_;
1480
1482
        options = _tmp18_;
1481
1483
        options_length1 = 3;
1482
1484
        _options_size_ = options_length1;
1483
 
        g_debug ("unity-greeter.vala:457: Loading command line options");
 
1485
        g_debug ("unity-greeter.vala:458: Loading command line options");
1484
1486
        _tmp19_ = _ ("- Unity Greeter");
1485
1487
        _tmp20_ = g_option_context_new (_tmp19_);
1486
1488
        c = _tmp20_;
1496
1498
                _tmp25_ = c;
1497
1499
                g_option_context_parse (_tmp25_, &args_length1, &args, &_inner_error_);
1498
1500
                if (_inner_error_ != NULL) {
1499
 
                        goto __catch26_g_error;
 
1501
                        goto __catch29_g_error;
1500
1502
                }
1501
1503
        }
1502
 
        goto __finally26;
1503
 
        __catch26_g_error:
 
1504
        goto __finally29;
 
1505
        __catch29_g_error:
1504
1506
        {
1505
1507
                GError* e = NULL;
1506
1508
                FILE* _tmp26_;
1532
1534
                options = (g_free (options), NULL);
1533
1535
                return result;
1534
1536
        }
1535
 
        __finally26:
 
1537
        __finally29:
1536
1538
        if (_inner_error_ != NULL) {
1537
1539
                _g_option_context_free0 (c);
1538
1540
                options = (g_free (options), NULL);
1552
1554
        }
1553
1555
        _tmp36_ = do_test_mode;
1554
1556
        if (_tmp36_) {
1555
 
                g_debug ("unity-greeter.vala:482: Running in test mode");
1556
 
        }
1557
 
        _tmp37_ = do_test_mode;
1558
 
        if (!_tmp37_) {
 
1557
                g_debug ("unity-greeter.vala:483: Running in test mode");
 
1558
        }
 
1559
        g_debug ("unity-greeter.vala:486: Setting GTK+ settings");
 
1560
        _tmp37_ = gtk_settings_get_default ();
 
1561
        _tmp38_ = _g_object_ref0 (_tmp37_);
 
1562
        settings = _tmp38_;
 
1563
        _tmp39_ = ug_settings_get_string (UG_SETTINGS_KEY_THEME_NAME);
 
1564
        value = _tmp39_;
 
1565
        _tmp40_ = value;
 
1566
        if (g_strcmp0 (_tmp40_, "") != 0) {
 
1567
                GtkSettings* _tmp41_;
 
1568
                const gchar* _tmp42_;
 
1569
                _tmp41_ = settings;
 
1570
                _tmp42_ = value;
 
1571
                g_object_set ((GObject*) _tmp41_, "gtk-theme-name", _tmp42_, NULL, NULL);
 
1572
        }
 
1573
        _tmp43_ = ug_settings_get_string (UG_SETTINGS_KEY_ICON_THEME_NAME);
 
1574
        _g_free0 (value);
 
1575
        value = _tmp43_;
 
1576
        _tmp44_ = value;
 
1577
        if (g_strcmp0 (_tmp44_, "") != 0) {
 
1578
                GtkSettings* _tmp45_;
 
1579
                const gchar* _tmp46_;
 
1580
                _tmp45_ = settings;
 
1581
                _tmp46_ = value;
 
1582
                g_object_set ((GObject*) _tmp45_, "gtk-icon-theme-name", _tmp46_, NULL, NULL);
 
1583
        }
 
1584
        _tmp47_ = ug_settings_get_string (UG_SETTINGS_KEY_FONT_NAME);
 
1585
        _g_free0 (value);
 
1586
        value = _tmp47_;
 
1587
        _tmp48_ = value;
 
1588
        if (g_strcmp0 (_tmp48_, "") != 0) {
 
1589
                GtkSettings* _tmp49_;
 
1590
                const gchar* _tmp50_;
 
1591
                _tmp49_ = settings;
 
1592
                _tmp50_ = value;
 
1593
                g_object_set ((GObject*) _tmp49_, "gtk-font-name", _tmp50_, NULL, NULL);
 
1594
        }
 
1595
        _tmp51_ = ug_settings_get_double (UG_SETTINGS_KEY_XFT_DPI);
 
1596
        double_value = _tmp51_;
 
1597
        _tmp52_ = double_value;
 
1598
        if (_tmp52_ != 0.0) {
 
1599
                GtkSettings* _tmp53_;
 
1600
                gdouble _tmp54_;
 
1601
                _tmp53_ = settings;
 
1602
                _tmp54_ = double_value;
 
1603
                g_object_set ((GObject*) _tmp53_, "gtk-xft-dpi", (gint) (1024 * _tmp54_), NULL, NULL);
 
1604
        }
 
1605
        _tmp55_ = ug_settings_get_boolean (UG_SETTINGS_KEY_XFT_ANTIALIAS);
 
1606
        boolean_value = _tmp55_;
 
1607
        _tmp56_ = settings;
 
1608
        _tmp57_ = boolean_value;
 
1609
        g_object_set ((GObject*) _tmp56_, "gtk-xft-antialias", _tmp57_, NULL, NULL);
 
1610
        _tmp58_ = ug_settings_get_string (UG_SETTINGS_KEY_XFT_HINTSTYLE);
 
1611
        _g_free0 (value);
 
1612
        value = _tmp58_;
 
1613
        _tmp59_ = value;
 
1614
        if (g_strcmp0 (_tmp59_, "") != 0) {
 
1615
                GtkSettings* _tmp60_;
 
1616
                const gchar* _tmp61_;
 
1617
                _tmp60_ = settings;
 
1618
                _tmp61_ = value;
 
1619
                g_object_set ((GObject*) _tmp60_, "gtk-xft-hintstyle", _tmp61_, NULL, NULL);
 
1620
        }
 
1621
        _tmp62_ = ug_settings_get_string (UG_SETTINGS_KEY_XFT_RGBA);
 
1622
        _g_free0 (value);
 
1623
        value = _tmp62_;
 
1624
        _tmp63_ = value;
 
1625
        if (g_strcmp0 (_tmp63_, "") != 0) {
 
1626
                GtkSettings* _tmp64_;
 
1627
                const gchar* _tmp65_;
 
1628
                _tmp64_ = settings;
 
1629
                _tmp65_ = value;
 
1630
                g_object_set ((GObject*) _tmp64_, "gtk-xft-rgba", _tmp65_, NULL, NULL);
 
1631
        }
 
1632
        g_debug ("unity-greeter.vala:509: Creating Unity Greeter");
 
1633
        _tmp66_ = do_test_mode;
 
1634
        _tmp67_ = unity_greeter_new (_tmp66_);
 
1635
        greeter = _tmp67_;
 
1636
        g_debug ("unity-greeter.vala:512: Showing greeter");
 
1637
        _tmp68_ = greeter;
 
1638
        unity_greeter_show (_tmp68_);
 
1639
        _tmp69_ = do_test_mode;
 
1640
        if (!_tmp69_) {
1559
1641
                g_setenv ("NM_APPLET_HIDE_POLICY_ITEMS", "1", TRUE);
1560
1642
                {
1561
1643
                        g_spawn_command_line_async ("nm-applet", &_inner_error_);
1562
1644
                        if (_inner_error_ != NULL) {
1563
 
                                goto __catch27_g_error;
 
1645
                                goto __catch30_g_error;
1564
1646
                        }
1565
1647
                }
1566
 
                goto __finally27;
1567
 
                __catch27_g_error:
 
1648
                goto __finally30;
 
1649
                __catch30_g_error:
1568
1650
                {
1569
1651
                        GError* e = NULL;
1570
 
                        GError* _tmp38_;
1571
 
                        const gchar* _tmp39_;
 
1652
                        GError* _tmp70_;
 
1653
                        const gchar* _tmp71_;
1572
1654
                        e = _inner_error_;
1573
1655
                        _inner_error_ = NULL;
1574
 
                        _tmp38_ = e;
1575
 
                        _tmp39_ = _tmp38_->message;
1576
 
                        g_warning ("unity-greeter.vala:495: Error starting nm-applet: %s", _tmp39_);
 
1656
                        _tmp70_ = e;
 
1657
                        _tmp71_ = _tmp70_->message;
 
1658
                        g_warning ("unity-greeter.vala:526: Error starting nm-applet: %s", _tmp71_);
1577
1659
                        _g_error_free0 (e);
1578
1660
                }
1579
 
                __finally27:
 
1661
                __finally30:
1580
1662
                if (_inner_error_ != NULL) {
 
1663
                        _unity_greeter_unref0 (greeter);
 
1664
                        _g_free0 (value);
 
1665
                        _g_object_unref0 (settings);
1581
1666
                        _g_option_context_free0 (c);
1582
1667
                        options = (g_free (options), NULL);
1583
1668
                        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);
1585
1670
                        return 0;
1586
1671
                }
1587
1672
        }
1588
 
        g_debug ("unity-greeter.vala:500: Setting GTK+ settings");
1589
 
        _tmp40_ = gtk_settings_get_default ();
1590
 
        _tmp41_ = _g_object_ref0 (_tmp40_);
1591
 
        settings = _tmp41_;
1592
 
        _tmp42_ = ug_settings_get_string (UG_SETTINGS_KEY_THEME_NAME);
1593
 
        value = _tmp42_;
1594
 
        _tmp43_ = value;
1595
 
        if (g_strcmp0 (_tmp43_, "") != 0) {
1596
 
                GtkSettings* _tmp44_;
1597
 
                const gchar* _tmp45_;
1598
 
                _tmp44_ = settings;
1599
 
                _tmp45_ = value;
1600
 
                g_object_set ((GObject*) _tmp44_, "gtk-theme-name", _tmp45_, NULL, NULL);
1601
 
        }
1602
 
        _tmp46_ = ug_settings_get_string (UG_SETTINGS_KEY_ICON_THEME_NAME);
1603
 
        _g_free0 (value);
1604
 
        value = _tmp46_;
1605
 
        _tmp47_ = value;
1606
 
        if (g_strcmp0 (_tmp47_, "") != 0) {
1607
 
                GtkSettings* _tmp48_;
1608
 
                const gchar* _tmp49_;
1609
 
                _tmp48_ = settings;
1610
 
                _tmp49_ = value;
1611
 
                g_object_set ((GObject*) _tmp48_, "gtk-icon-theme-name", _tmp49_, NULL, NULL);
1612
 
        }
1613
 
        _tmp50_ = ug_settings_get_string (UG_SETTINGS_KEY_FONT_NAME);
1614
 
        _g_free0 (value);
1615
 
        value = _tmp50_;
1616
 
        _tmp51_ = value;
1617
 
        if (g_strcmp0 (_tmp51_, "") != 0) {
1618
 
                GtkSettings* _tmp52_;
1619
 
                const gchar* _tmp53_;
1620
 
                _tmp52_ = settings;
1621
 
                _tmp53_ = value;
1622
 
                g_object_set ((GObject*) _tmp52_, "gtk-font-name", _tmp53_, NULL, NULL);
1623
 
        }
1624
 
        _tmp54_ = ug_settings_get_double (UG_SETTINGS_KEY_XFT_DPI);
1625
 
        double_value = _tmp54_;
1626
 
        _tmp55_ = double_value;
1627
 
        if (_tmp55_ != 0.0) {
1628
 
                GtkSettings* _tmp56_;
1629
 
                gdouble _tmp57_;
1630
 
                _tmp56_ = settings;
1631
 
                _tmp57_ = double_value;
1632
 
                g_object_set ((GObject*) _tmp56_, "gtk-xft-dpi", (gint) (1024 * _tmp57_), NULL, NULL);
1633
 
        }
1634
 
        _tmp58_ = ug_settings_get_boolean (UG_SETTINGS_KEY_XFT_ANTIALIAS);
1635
 
        boolean_value = _tmp58_;
1636
 
        _tmp59_ = settings;
1637
 
        _tmp60_ = boolean_value;
1638
 
        g_object_set ((GObject*) _tmp59_, "gtk-xft-antialias", _tmp60_, NULL, NULL);
1639
 
        _tmp61_ = ug_settings_get_string (UG_SETTINGS_KEY_XFT_HINTSTYLE);
1640
 
        _g_free0 (value);
1641
 
        value = _tmp61_;
1642
 
        _tmp62_ = value;
1643
 
        if (g_strcmp0 (_tmp62_, "") != 0) {
1644
 
                GtkSettings* _tmp63_;
1645
 
                const gchar* _tmp64_;
1646
 
                _tmp63_ = settings;
1647
 
                _tmp64_ = value;
1648
 
                g_object_set ((GObject*) _tmp63_, "gtk-xft-hintstyle", _tmp64_, NULL, NULL);
1649
 
        }
1650
 
        _tmp65_ = ug_settings_get_string (UG_SETTINGS_KEY_XFT_RGBA);
1651
 
        _g_free0 (value);
1652
 
        value = _tmp65_;
1653
 
        _tmp66_ = value;
1654
 
        if (g_strcmp0 (_tmp66_, "") != 0) {
1655
 
                GtkSettings* _tmp67_;
1656
 
                const gchar* _tmp68_;
1657
 
                _tmp67_ = settings;
1658
 
                _tmp68_ = value;
1659
 
                g_object_set ((GObject*) _tmp67_, "gtk-xft-rgba", _tmp68_, NULL, NULL);
1660
 
        }
1661
 
        g_debug ("unity-greeter.vala:523: Creating Unity Greeter");
1662
 
        _tmp69_ = do_test_mode;
1663
 
        _tmp70_ = unity_greeter_new (_tmp69_);
1664
 
        greeter = _tmp70_;
1665
 
        g_debug ("unity-greeter.vala:526: Showing greeter");
1666
 
        _tmp71_ = greeter;
1667
 
        unity_greeter_show (_tmp71_);
1668
 
        g_debug ("unity-greeter.vala:529: Starting main loop");
 
1673
        g_debug ("unity-greeter.vala:530: Starting main loop");
1669
1674
        gtk_main ();
1670
1675
        _tmp72_ = atspi_pid;
1671
1676
        if (_tmp72_ != ((GPid) 0)) {