~ubuntu-branches/ubuntu/karmic/mhwaveedit/karmic

« back to all changes in this revision

Viewing changes to src/main.c

  • Committer: Bazaar Package Importer
  • Author(s): Free Ekanayaka
  • Date: 2008-01-08 22:20:37 UTC
  • mfrom: (2.1.6 hardy)
  • Revision ID: james.westby@ubuntu.com-20080108222037-tsazhckl5vmc8yih
Tags: 1.4.14-2
Added desktop file (Closes: #457849), thanks to Marco Rodrigues

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright (C) 2002 2003 2004 2005, Magnus Hjorth
 
2
 * Copyright (C) 2002 2003 2004 2005 2007, Magnus Hjorth
3
3
 *
4
4
 * This file is part of mhWaveEdit.
5
5
 *
94
94
     gboolean b;
95
95
     gchar *c;
96
96
 
 
97
     /* Some versions of the aRts C library call g_thread_init internally,
 
98
      * and that confuses GLib2's memory allocation stuff. */
 
99
#ifdef HAVE_GTHREAD
 
100
     g_thread_init(NULL);
 
101
#endif
 
102
 
97
103
     /* Set default locale */
98
104
     setlocale(LC_ALL,"");
99
105
 
193
199
     set_custom_colors(NULL);
194
200
 
195
201
     /* Register effects */
196
 
     effect_browser_register_default_effects();
 
202
     effect_register_init();
197
203
     if (ladspa) ladspa_dialog_register();
198
204
     sox_dialog_register();
199
205
 
360
366
     return gc_table[c];
361
367
}
362
368
 
363
 
static int hexval(gchar chr)
 
369
int hexval(gchar chr)
364
370
{
365
371
     if (chr >= '0' && chr <= '9') return chr-'0';
366
372
     else if (chr >= 'a' && chr <= 'f') return chr-'a'+10;
503
509
     else if (chan == 0) return _("Left");
504
510
     else if (chan == 1) return _("Right");
505
511
     else {
506
 
          g_snprintf(buf,sizeof(buf),_("Channel %d"),chan+1);
 
512
          g_snprintf(buf,sizeof(buf),_("Ch%d"),chan+1);
507
513
          return buf;
508
514
     }
509
515
}