~ubuntu-branches/ubuntu/trusty/sound-juicer/trusty

« back to all changes in this revision

Viewing changes to src/sj-prefs.c

  • Committer: Bazaar Package Importer
  • Author(s): Pedro Fragoso
  • Date: 2009-02-13 16:57:30 UTC
  • mfrom: (1.1.37 upstream)
  • Revision ID: james.westby@ubuntu.com-20090213165730-zehs2hnzj2pso94k
Tags: 2.25.3-0ubuntu1
* New upstream release (LP: #329134)
  - Put the disc number in the file name
  - Support multiple genres
  - Use libcanberra for event sounds
  - Handle custom patterns in the prefs dialog
  - Remove Musicbrainz data if the track data is changed
  - Fix disc number editing logic
* debian/control.in:
  - Bump libgstreamer0.10-dev to 0.10.15
  - Build-dep on libcanberra-gtk-dev 
  - Also depend on libcanberra-gtk0
* debian/debian/patches/01_lpi.patch, 
  debian/patches/02_autoconf.patch:
  - Refreshed for the new upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
};
64
64
 
65
65
static const FilePattern file_patterns[] = {
66
 
  {N_("Number - Title"), "%tN - %tt"},
 
66
  {N_("Number - Title"), "%dn - %tt"},
67
67
  {N_("Track Title"), "%tt"},
68
68
  {N_("Track Artist - Track Title"), "%ta - %tt"},
69
69
  {N_("Track Artist (sortable) - Track Title"), "%ts - %tt"},
70
 
  {N_("Number. Track Artist - Track Title"), "%tN. %ta - %tt"},
 
70
  {N_("Number. Track Artist - Track Title"), "%dN. %ta - %tt"},
71
71
  /* {N_("Number. Track Artist (sortable) - Track Title"), "%tN. %ts - %tt"}, */
72
 
  {N_("Number-Track Artist-Track Title (lowercase)"), "%tN-%tA-%tT"},
 
72
  {N_("Number-Track Artist-Track Title (lowercase)"), "%dN-%tA-%tT"},
73
73
  /* {N_("Number-Track Artist (sortable)-Track Title (lowercase)"), "%tN-%tS-%tT"}, */
74
74
  {NULL, NULL}
75
75
};
134
134
  gint active;
135
135
  const char* pattern;
136
136
  active = gtk_combo_box_get_active (combo);
 
137
  if (active == -1)
 
138
    return;
 
139
 
137
140
  pattern = path_patterns[active].pattern;
138
141
  if (pattern) {
139
142
    gconf_client_set_string (gconf_client, GCONF_PATH_PATTERN, pattern, NULL);
145
148
  gint active;
146
149
  const char* pattern;
147
150
  active = gtk_combo_box_get_active (combo);
 
151
  if (active == -1)
 
152
    return;
 
153
 
148
154
  pattern = file_patterns[active].pattern;
149
155
  if (pattern) {
150
156
    gconf_client_set_string (gconf_client, GCONF_FILE_PATTERN, pattern, NULL);