~dnax88/+junk/gtkterm

« back to all changes in this revision

Viewing changes to src/gtkterm.c

  • Committer: Daniele Napolitano
  • Date: 2010-11-05 23:10:38 UTC
  • Revision ID: dnax88@gmail.com-20101105231038-01ummttushn7iplr
Fixed intltool support, use glib/gi18n.h instead builtin gettext.h

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
#include "widgets.h"
24
24
#include "serie.h"
25
 
#include "config.h"
 
25
#include "term_config.h"
26
26
#include "cmdline.h"
27
27
#include "parsecfg.h"
28
28
#include "buffer.h"
29
29
#include "macros.h"
30
30
#include "auto_config.h"
31
 
#include "gettext.h"
 
31
 
 
32
#include <config.h>
 
33
#include <glib/gi18n.h>
32
34
 
33
35
int main(int argc, char *argv[])
34
36
{
36
38
 
37
39
  config_file = g_strdup_printf("%s/.gtktermrc", getenv("HOME"));
38
40
 
39
 
  gtk_set_locale();
40
 
  (void)bindtextdomain(PACKAGE, LOCALEDIR);
41
 
  (void)bind_textdomain_codeset(PACKAGE, "UTF-8");
42
 
  (void)textdomain(PACKAGE);
 
41
  bindtextdomain(PACKAGE, LOCALEDIR);
 
42
  bind_textdomain_codeset(PACKAGE, "UTF-8");
 
43
  textdomain(PACKAGE);
43
44
 
44
45
  gtk_init(&argc, &argv);
45
46
 
46
47
  create_buffer();
47
 
 
 
48
 
48
49
  create_main_window();
49
 
  
 
50
 
50
51
  if(read_command_line(argc, argv) < 0)
51
52
    {
52
53
      delete_buffer();