Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • xfce4-sensors-plugin xfce4-sensors-plugin
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Graph
    • Compare revisions
  • Issues 25
    • Issues 25
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Panel PluginsPanel Plugins
  • xfce4-sensors-pluginxfce4-sensors-plugin
  • Merge requests
  • !63
The source project of this merge request has been removed.

Remove default values from RC configuration files

Merged Ghost User requested to merge (removed):master into master Nov 10, 2021
  • Overview 0
  • Pipelines 0
  • Changes 8

This simplifies updates over time. That is: users who are using default values will automatically receive the updated values when switching from xfce4-sensors-plugin version N to version N+1.

Changes:

  • Remove sensors_init_default_values() -> Add t_sensors constructor
  • Specify default values in 1 place (t_sensors constructor), instead of 2 places (sensors-interface-common.cc, configuration.cc)
  • Add xfce4::Rc::write_default_... functions
  • Add support for floating-point values (32-bit) to xfce4::Rc
  • Add parse_float() and parse_double()

Fixed issues:

  • Save the current width&height values (not the stale values) to RC file
  • Rc::read_entry() fallback code-path

See also: #26 (closed)

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: master