~ubuntu-branches/ubuntu/hardy/gdm/hardy-updates

« back to all changes in this revision

Viewing changes to gui/gdmsetup.c

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2008-05-13 10:44:34 UTC
  • mfrom: (1.4.26 upstream)
  • Revision ID: james.westby@ubuntu.com-20080513104434-xg3oi65kaoz1ux8j
Tags: 2.20.6-0ubuntu1
* New upstream version (lp: #229866):
  - Fix two related bugs that were causing GDM to crash regularly on exit.
    Refer to bug #517526.  
  - Fix a third bug that was causing the GDM daemon to crash occasionally when
    using gdmsetup.  This fix changes GDM so that when it receives an
    UPDATE_CONFIG command, it only updates the key specified rather than
    re-reading the entire configuration file.  Fixes bug #517526.
  - Sync to avoid any XIO errors after session exits.  
  - Fix so that the XDMCP configuration values are read from the configuration
    file when the XDMCP manager is started rather than initialized.  It seems
    the related fixes implemented in 2.20.2 did not fully resolve this issue.
  - Fix bug that was causing GDM session desktop file marked as "Hidden=true"
    to show up in the Session dialog.  
  - Fix gdmsetup bug that caused users to need to restart GDM in order for
    it to notice changes made in the "Server settings" dialog.
  - Fix gdmsetup so it does not save 24HourClock setting as a translated 
    string, which was causing the configuration to get confused.
  - If the user's $HOME/.dmrc file does not exist, avoid calling gkeyfile 
    functions.  This avoids useless gkeyfile warning messages about the file
    being NULL.  A previous fix in 2.20.1 minimized this problem by creating
    the file if it did not exist.  However, that does not always work if the
    user's $HOME directory is not writable (e.g. LiveCD).  So this fix avoids
    the warnings.  
  - Add default OpenBSD Halt, Reboot and Suspend commands to the configure
    script.  
  - Remove broken logic in the configure script that was trying to append
    ${prefix}/bin to the DefaultPath and RootPath.  Please use the 
    --with-post-path configure option if you want to add custom directories
    to the end of DefaultPath and RootPath.  
  - Fix the way the Xsession script is built so that distros can more easily
    add their own custom logic to the Xsession script.  Some Solaris specific
    code was moved to the Xsession.solaris file so that other distros do not
    get affected by this code.  Remove logic to normalize LC_ variables since
    this was causing problems for some users.  Refer to bug #509141
* debian/patches/11_powermanagement.patch,
  debian/patches/56_xnest-wrapper.patch,
  debian/patches/70_mandatory-relibtoolize.patch:
  - updated for the new version
* debian/Xsession:
  - set the USERXSESSIONRC environment variable (lp: #229199)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1525
1525
                gchar *new_val;
1526
1526
                
1527
1527
                new_val = gtk_combo_box_get_active_text (GTK_COMBO_BOX (combo_box));
1528
 
                val = gdm_config_get_string ((gchar *)key);
1529
 
                if (new_val &&
1530
 
                    strcmp (ve_sure_string (val), ve_sure_string (new_val)) != 0) {                     
1531
 
                        gdm_setup_config_set_string (key, new_val);
 
1528
                val     = gdm_config_get_string ((gchar *)key);
 
1529
 
 
1530
                if (new_val) {
 
1531
                    if (strcmp (_(new_val), _("auto"))) {
 
1532
                       if (strcasecmp (ve_sure_string (val), "auto") != 0)
 
1533
                          gdm_setup_config_set_string (key, "auto");
 
1534
                    }
 
1535
                    else if (strcmp (_(new_val), _("yes"))) {
 
1536
                       if (strcasecmp (ve_sure_string (val), "true") != 0 &&
 
1537
                           strcasecmp (ve_sure_string (val), "yes") != 0)
 
1538
                          gdm_setup_config_set_string (key, "true");
 
1539
                    }
 
1540
                    else {
 
1541
                       if (strcasecmp (ve_sure_string (val), "false") != 0 &&
 
1542
                           strcasecmp (ve_sure_string (val), "no") != 0) 
 
1543
                           gdm_setup_config_set_string (key, "false");
 
1544
                    }
1532
1545
                }
1533
1546
                g_free (new_val);
1534
1547
                g_free (val);
7488
7501
 
7489
7502
        user_24hr_clock = gdm_config_get_string (GDM_KEY_USE_24_CLOCK);
7490
7503
        if (!ve_string_empty (user_24hr_clock)) {
7491
 
                if (strcasecmp (ve_sure_string (user_24hr_clock), _("auto")) == 0) {
 
7504
                if (strcasecmp (ve_sure_string (user_24hr_clock), "auto") == 0) {
7492
7505
                        gtk_combo_box_set_active (GTK_COMBO_BOX (clock_type_chooser), CLOCK_AUTO);
7493
7506
                }
7494
 
                else if (strcasecmp (ve_sure_string (user_24hr_clock), _("yes")) == 0) {
 
7507
                else if (strcasecmp (ve_sure_string (user_24hr_clock), "yes") == 0 ||
 
7508
                         strcasecmp (ve_sure_string (user_24hr_clock), "true") == 0) {
7495
7509
                        gtk_combo_box_set_active (GTK_COMBO_BOX (clock_type_chooser), CLOCK_YES);
7496
7510
                }
7497
 
                else if (strcasecmp (ve_sure_string (user_24hr_clock), _("no")) == 0) { 
 
7511
                else if (strcasecmp (ve_sure_string (user_24hr_clock), "no") == 0 ||
 
7512
                         strcasecmp (ve_sure_string (user_24hr_clock), "true") == 0) {
7498
7513
                        gtk_combo_box_set_active (GTK_COMBO_BOX (clock_type_chooser), CLOCK_NO);
7499
7514
                }
7500
7515
        }