~ubuntu-branches/ubuntu/precise/xfce4-power-manager/precise

« back to all changes in this revision

Viewing changes to settings/xfpm-settings.c

  • Committer: Bazaar Package Importer
  • Author(s): Lionel Le Folgoc
  • Date: 2009-12-04 16:13:45 UTC
  • mfrom: (6.2.3 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091204161345-pkcz5rs7pudco2hl
Tags: 0.8.4.2-1ubuntu1
* Merge from Debian testing, remaining Ubuntu changes:
  - debian/patches:
    + xubuntu-use-notification-icons.patch: use our notification-* icons for
      notification bubbles instead of the normal ones LP: #437374
    + 10_pc.patch: added patched files to POTFILES.skip
    + series: created, with these two patches
  - debian/rules: add --with quilt
  - debian/control: build-depends on quilt (>= 0.46-7~)
  - debian/README.source: added.

Show diffs side-by-side

added added

removed removed

Lines of Context:
990
990
    }
991
991
    else
992
992
    {
993
 
        frame = GTK_WIDGET (gtk_builder_get_object (xml, "on-ac-actions-frame"));
994
 
        gtk_widget_hide_all (frame);
 
993
        GtkWidget *label;
 
994
        label = GTK_WIDGET (gtk_builder_get_object (xml, "on-ac-lid-label"));
 
995
        gtk_widget_hide (label);
 
996
        gtk_widget_hide (lid);
995
997
    }
996
998
    
997
999
    /*
1349
1351
    
1350
1352
        val = xfconf_channel_get_uint (channel, PROPERTIES_PREFIX CRITICAL_POWER_LEVEL, 10);
1351
1353
 
1352
 
        if ( val > 20 || val < 5)
 
1354
        if ( G_UNLIKELY (val > 20) )
1353
1355
        {
1354
1356
            g_critical ("Value %d if out of range for property %s\n", val, CRITICAL_POWER_LEVEL);
1355
1357
            gtk_spin_button_set_value (GTK_SPIN_BUTTON(critical_level), 10);