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

« back to all changes in this revision

Viewing changes to alsaMixer/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
        
36
36
        gchar *cMixerElementName = CD_CONFIG_GET_STRING ("Configuration", "mixer element");
37
37
        gchar *cMixerElementName2 = CD_CONFIG_GET_STRING ("Configuration", "mixer element 2");
38
 
        if (cMixerElementName2 != NULL && strcmp (cMixerElementName, cMixerElementName2) == 0)
 
38
        if (cMixerElementName != NULL && cMixerElementName2 != NULL && strcmp (cMixerElementName, cMixerElementName2) == 0)
39
39
        {
40
40
                myConfig.cMixerElementName = g_strconcat (cMixerElementName, ",0", NULL);
41
41
                myConfig.cMixerElementName2 = g_strconcat (cMixerElementName, ",1", NULL);
44
44
        else
45
45
        {
46
46
                myConfig.cMixerElementName = cMixerElementName;
 
47
                myConfig.cMixerElementName2 = cMixerElementName2;
47
48
        }
48
 
        g_free (cMixerElementName2);
49
49
        
50
50
        myConfig.cShowAdvancedMixerCommand = CD_CONFIG_GET_STRING ("Configuration", "show mixer");
51
51
        
103
103
        GList *pList = mixer_get_elements_list ();
104
104
        
105
105
        //\____________ On recupere la combo.
106
 
        GtkWidget *pCombo = cairo_dock_get_widget_from_name ("Configuration", "mixer element");
 
106
        GtkWidget *pCombo = CD_APPLET_GET_CONFIG_PANEL_WIDGET ("Configuration", "mixer element");
107
107
        g_return_if_fail (pCombo != NULL);
108
108
        cairo_dock_fill_combo_with_list (pCombo, pList, myConfig.cMixerElementName);
109
109
        
110
110
        //\____________ Idem pour la 2eme, avec une entree vide au debut.
111
 
        pCombo = cairo_dock_get_widget_from_name ("Configuration", "mixer element 2");
 
111
        pCombo = CD_APPLET_GET_CONFIG_PANEL_WIDGET ("Configuration", "mixer element 2");
112
112
        g_return_if_fail (pCombo != NULL);
113
113
        pList = g_list_prepend (pList, (gpointer)"");  // on peut caster ici car tous les elements sont des const pour nous.
114
114
        cairo_dock_fill_combo_with_list (pCombo, pList, myConfig.cMixerElementName2);