Develop and Download Open Source Software

Browse CVS Repository

Contents of /gticker/gticker/main.cxx

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1.1.1 - (show annotations) (download) (as text) (vendor branch)
Mon Aug 15 06:50:48 2005 UTC (18 years, 7 months ago) by bluedwarf
Branch: MAIN, bluedwarf
CVS Tags: start, HEAD
Changes since 1.1: +0 -0 lines
File MIME type: text/x-c++src
Initial import of gticker

1 /*
2 * gticker -- a Gtk+2 based RSS news ticker.
3 *
4 * main.cxx
5 * Copyright (C) 2005 Takashi Nakamoto <bluedwarf@openoffice.org>
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 *
21 */
22
23 #include <gtk/gtk.h>
24 #include <gconf/gconf-client.h>
25 #include <libxml/parser.h>
26 #include <libxml/tree.h>
27
28 #ifdef HAVE_CONFIG_H
29 #include "config.h"
30 #endif
31
32 #include "intl.h"
33
34 #include "src/TickerManager.hxx"
35
36 int main(int argc, char *argv[]){
37 gtk_set_locale();
38 gtk_init(&argc, &argv);
39 gconf_init(argc, argv, NULL);
40
41 // for gettext
42 setlocale(LC_ALL, "");
43 bindtextdomain("gticker", LOCALEDIR);
44 bind_textdomain_codeset("gticker", "UTF-8");
45 textdomain("gticker");
46
47 TickerManager *manager = TickerManager::getInstance();
48 manager->init();
49
50 gtk_main();
51
52 xmlCleanupParser();
53
54 return 0;
55 }

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26