aboutsummaryrefslogtreecommitdiff
path: root/src/logdiag.c
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2010-09-17 19:03:03 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2010-09-19 19:12:12 +0200
commit341f51eb415c98c201b7744cea9ebc1fff321ad4 (patch)
treedf95eb3d7c8e416eb1e5669ee7f34e91f82ddb8e /src/logdiag.c
parentdb46ae550527f1a36101f613dafdb15e0b6ac530 (diff)
downloadlogdiag-341f51eb415c98c201b7744cea9ebc1fff321ad4.tar.gz
logdiag-341f51eb415c98c201b7744cea9ebc1fff321ad4.tar.xz
logdiag-341f51eb415c98c201b7744cea9ebc1fff321ad4.zip
Renamed source files.
Also a little change in CMakeLists.txt. The next commit is going to change the object prefix.
Diffstat (limited to 'src/logdiag.c')
-rw-r--r--src/logdiag.c39
1 files changed, 39 insertions, 0 deletions
diff --git a/src/logdiag.c b/src/logdiag.c
new file mode 100644
index 0000000..4f69916
--- /dev/null
+++ b/src/logdiag.c
@@ -0,0 +1,39 @@
+/*
+ * logdiag.c -- logdiag main source file.
+ *
+ * This file is a part of logdiag.
+ * Copyright Přemysl Janouch 2010. All rights reserved.
+ *
+ * See the file LICENSE for licensing information.
+ *
+ */
+
+#include <gtk/gtk.h>
+
+#include "config.h"
+
+#include "ld-window-main.h"
+
+
+int main (int argc, char *argv[])
+{
+ GtkWidget *wnd;
+
+#ifdef HAVE_GETTEXT
+ setlocale (LC_ALL, "");
+
+ bindtextdomain (GETTEXT_DOMAIN, GETTEXT_DIRNAME);
+ textdomain (GETTEXT_DOMAIN);
+#endif
+
+ /* For custom command line arguments, see:
+ * http://git.gnome.org/browse/glade3/tree/src/main.c
+ */
+
+ gtk_init (&argc, &argv);
+ wnd = logdiag_window_main_new ();
+ gtk_main ();
+
+ return 0;
+}
+