~ubuntu-branches/ubuntu/utopic/gnomeradio/utopic

« back to all changes in this revision

Viewing changes to .pc/gnomeradio-preferences.patch/src/prefs.c

  • Committer: Package Import Robot
  • Author(s): POJAR GEORGE
  • Date: 2013-09-30 12:21:35 UTC
  • Revision ID: package-import@ubuntu.com-20130930122135-vf81kgrs7vdvxlph
Tags: 1.8-2ubuntu24
* Fixed previous debian/changelog: gnomeradio-tray_menu.patch is a new patch
  not one updated.
* Updated debian/patches/gnomeradio-alsa.patch: Fixed wrong switch in case
  statement. (LP: 1240691)
* Updated debian/patches/gnomeradio-auto_device.patch: Fixed pointer to local
  stack variable returned or used outside scope.
* Updated debian/patches/gnomeradio-preferences.patch:
  - Fixed the indentation of code suggests it is nested when it is not.
  - Fixed function that returns non-void is missing a return value.
  - Use GtkSwitch instead GtkRadioButton to change audio loopback state.
    (LP: 1240632)
  - Avoid memory leak (unref the gconf client when we're done).
* Updated debian/patches/gnomeradio-tray_menu.patch: Moved
  tree_view_switch_to_preset() inside of gnomeradio_switch_to_preset() so
  preset list will be updated when use LIRC command.
* Updated gnomeradio-station_list.patch: Make sure the XML document will be
  indented.

Show diffs side-by-side

added added

removed removed

Lines of Context:
922
922
        model = gtk_tree_view_get_model(GTK_TREE_VIEW(list_view));
923
923
        /* ...and go through it with a foreach */
924
924
        gtk_tree_model_foreach(model, (GtkTreeModelForeachFunc)save_to_file_foreach, (gpointer)root);
 
925
        /* make sure the XML document will be indented */
 
926
        xmlIndentTreeOutput = 1;
925
927
        /* save the actual file */
926
 
        xmlSaveFile(filename, doc);
 
928
        xmlSaveFormatFileEnc(filename, doc, "utf-8", 1);
927
929
        /* free the doc node */
928
930
        xmlFreeDoc(doc);
929
931
}
1011
1013
                                gtk_tree_store_append(GTK_TREE_STORE(model), &parent, NULL);
1012
1014
                        else
1013
1015
                                gtk_list_store_append(GTK_LIST_STORE(model), &parent);
1014
 
                                gtk_tree_model_generate_path(model, temp);
1015
 
                                break;
 
1016
                        gtk_tree_model_generate_path(model, temp);
 
1017
                        break;
1016
1018
                }
1017
1019
                if (GTK_IS_TREE_STORE(model)) {
1018
1020
                        gtk_tree_model_generate_path(model, path);