~ubuntu-branches/ubuntu/quantal/nvidia-settings/quantal-security

« back to all changes in this revision

Viewing changes to src/gtk+-2.x/ctkthermal.h

  • Committer: Bazaar Package Importer
  • Author(s): Alberto Milone
  • Date: 2010-06-27 18:59:46 UTC
  • mfrom: (1.1.11 upstream)
  • Revision ID: james.westby@ubuntu.com-20100627185946-zpgnp08qs5do500z
Tags: 256.35-0ubuntu1
* New upstream release:
  - Fixed a bug that caused nvidia-settings to crash when rendering
    its thermal gauge widget if the range of valid values for the
    thermal sensor was empty.
  - Improved Thermal Settings reporting in nvidia-settings to
    accurately reflect hardware configurations with multiple thermal
    sensors.
* debian/docs:
  - Remove Makefile.inc.

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
    CtkEvent *event;           /* Receive NV_CONTROL events */
64
64
} CoolerControlRec, *CoolerControlPtr;
65
65
 
 
66
typedef struct {
 
67
    int format;
 
68
    const char *name;
 
69
} nvctrlFormatName;
 
70
 
 
71
typedef struct _SensorInfo {
 
72
    NvCtrlAttributeHandle *handle;
 
73
    int currentTemp;
 
74
    int minTemp;
 
75
    int maxTemp;
 
76
    
 
77
    GtkWidget *target_type;
 
78
    GtkWidget *provider_type;
 
79
    GtkWidget *temp_label;
 
80
    GtkWidget *core_gauge;
 
81
} SensorInfoRec, *SensorInfoPtr;
 
82
 
66
83
struct _CtkThermal
67
84
{
68
85
    GtkVBox parent;
91
108
    gboolean show_fan_control_frame;
92
109
    gboolean enable_reset_button;
93
110
    CoolerControlPtr cooler_control;
 
111
    SensorInfoPtr sensor_info;
94
112
    int cooler_count;
 
113
    int sensor_count;
 
114
    gboolean thermal_sensor_target_type_supported;
95
115
};
96
116
 
97
117
struct _CtkThermalClass