~ubuntu-branches/ubuntu/oneiric/cairo-dock-plug-ins/oneiric-proposed

« back to all changes in this revision

Viewing changes to System-Monitor/src/applet-config.c

  • Committer: Bazaar Package Importer
  • Author(s): Matthieu Baerts (matttbe)
  • Date: 2011-04-20 20:46:51 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20110420204651-ftnpzesj6uc7qeul
Tags: 2.3.0~1-0ubuntu1
* New Upstream Version (LP: #723995)
* Upstream short ChangeLog (since 2.3.0~0rc1):
 - Updated translations
 - Updated the integration of the new versions of kwin and compiz
    (Switcher, ShowDesktop, etc.)
 - Removed a lot of useless g_print
 - Updated a few plug-ins to fit with the new version of the API (gldit)
 - Fixed a few bugs
 - Updated MeMenu, MessagingMenu and Status-Notifier to works
    with the latest version of dbusmenu, etc.
* Switch to dpkg-source 3.0 (quilt) format
* debian/cairo-dock-plug-ins.install:
 - Added new files (interfaces for python, ruby, vala and mono)
* debian/control:
 - Added new dependences for new applets (sensors and zeitgeist)
    and new interfaces (python, valac, ruby and mono)
 - Updated the version of cairo-dock build-dependences
* debian/rules:
 - Added a new CMake flag to install python interface in debian/tmp
* Updated debian/watch

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
        myConfig.bShowRam = CD_CONFIG_GET_BOOLEAN_WITH_DEFAULT ("Configuration", "show ram", TRUE);
36
36
        myConfig.bShowSwap = CD_CONFIG_GET_BOOLEAN ("Configuration", "show swap");
37
37
        myConfig.bShowNvidia = CD_CONFIG_GET_BOOLEAN ("Configuration", "show nvidia");
 
38
#ifdef HAVE_SENSORS
 
39
        myConfig.bShowCpuTemp = CD_CONFIG_GET_BOOLEAN_WITH_DEFAULT ("Configuration", "show cpu temp", FALSE);
 
40
        myConfig.bShowFanSpeed = CD_CONFIG_GET_BOOLEAN_WITH_DEFAULT ("Configuration", "show fan", FALSE);
 
41
#endif  // donc toujours a false si non defini
38
42
        myConfig.bShowFreeMemory = CD_CONFIG_GET_BOOLEAN ("Configuration", "show free");
39
43
        
40
44
        myConfig.iInfoDisplay = CD_CONFIG_GET_INTEGER ("Configuration", "info display");
58
62
        myConfig.iNbDisplayedProcesses = CD_CONFIG_GET_INTEGER ("Configuration", "top");
59
63
        myConfig.iProcessCheckInterval = CD_CONFIG_GET_INTEGER ("Configuration", "top delay");
60
64
        
61
 
        myConfig.pTopTextDescription = cairo_dock_duplicate_label_description (&myDialogs.dialogTextDescription);
 
65
        myConfig.pTopTextDescription = cairo_dock_duplicate_label_description (&myDialogsParam.dialogTextDescription);
62
66
        g_free (myConfig.pTopTextDescription->cFont);
63
67
        myConfig.pTopTextDescription->cFont = g_strdup ("Mono");  // on prend une police a chasse fixe.
64
68
        CD_CONFIG_GET_COLOR_RVB ("Configuration", "top color start", myConfig.pTopTextDescription->fColorStart);
107
111
        
108
112
        CD_APPLET_REMOVE_MY_DATA_RENDERER;
109
113
        
110
 
        cairo_dock_free_task (myData.pTopTask);
111
 
        if (myData.pTopClock != NULL)
112
 
                g_timer_destroy (myData.pTopClock);
113
 
        g_free (myData.pTopList);
114
 
        if (myData.pProcessTable != NULL)
115
 
                g_hash_table_destroy (myData.pProcessTable);
116
 
        cairo_surface_destroy (myData.pTopSurface);
 
114
        cairo_dock_dialog_unreference (myData.pTopDialog);
117
115
        
118
116
        g_free (myData.cModelName);
119
117
        g_free (myData.cGPUName);
120
118
        g_free (myData.cDriverVersion);
121
 
        
122
119
CD_APPLET_RESET_DATA_END
123
120