GLeaker

GLeaker Commit Details

Date:2013-04-03 11:50:08 (4 years 9 months ago)
Author:Nicola Fontana
Branch:master
Commit:9fecf51056cc65082280a4fb1975630a5ddb9780
Parents: e612894d6686b262b7010dd1815539d894375835
Message:Renamed project to gleaker

gleak is yet used by GNU leak and a project on GitHub for variable leak
detection for Node.js.
Changes:
Rpo/gleak.pot → po/gleaker.pot
Rsrc/gleak.c → src/gleaker.c
Rsrc/gleak.h → src/gleaker.h
Rsrc/gleak.ui → src/gleaker.ui
Mautogen.sh (1 diff)
Mconfigure.ac (4 diffs)
Mpo/POTFILES.in (1 diff)
Mpo/it.po (2 diffs)
Msrc/.gitignore (1 diff)
Msrc/Makefile.am (1 diff)

File differences

autogen.sh
2020
2121
2222
23
24
23
24
2525
2626
2727
dir=`dirname $0`
test -z "$dir" && dir=.
step"Checking for top-level gleak directory" \
"test -f '$dir/configure.ac' -a -f '$dir/src/gleak.c'"
step"Checking for top-level gleaker directory" \
"test -f '$dir/configure.ac' -a -f '$dir/src/gleaker.c'"
step"Creating dummy ChangeLog, if needed" \
"test -f '$dir/ChangeLog' || touch '$dir/ChangeLog'"
configure.ac
1
1
22
33
44
......
77
88
99
10
11
12
13
10
11
12
13
1414
1515
1616
......
4848
4949
5050
51
51
5252
5353
5454
......
7373
7474
7575
76
76
7777
7878
7979
m4_define([gleak_version], [0.0.1])
m4_define([gleaker_version], [0.0.1])
m4_define([gtk_prereq],[3.0.0])
dnl autoconf 2.54 is required by goffice
AC_PREREQ([2.54])
AC_INIT([gleak],gleak_version,
[http://dev.entidi.com/p/gleak/issues/],
[gleak],[http://gleak.entidi.com/])
AC_CONFIG_SRCDIR([src/gleak.c])
AC_INIT([gleaker],gleaker_version,
[http://dev.entidi.com/p/gleaker/issues/],
[gleaker],[http://gleaker.entidi.com/])
AC_CONFIG_SRCDIR([src/gleaker.c])
AC_CONFIG_HEADERS([src/config.h])
AC_CONFIG_AUX_DIR([build])
AC_CONFIG_MACRO_DIR([build])
# I18n
AC_SUBST(GETTEXT_PACKAGE,AC_PACKAGE_TARNAME-gleak_version)
AC_SUBST(GETTEXT_PACKAGE,AC_PACKAGE_TARNAME-gleaker_version)
AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE],["${GETTEXT_PACKAGE}"],
[Define to the domain used by gettext.])
AM_GNU_GETTEXT_VERSION([0.15])
AC_MSG_NOTICE([generating report
AC_PACKAGE_NAME gleak_version will be built with the following options:
AC_PACKAGE_NAME gleaker_version will be built with the following options:
-----------------------------------------------------
GOffice library: libgoffice-${goffice_api} (${goffice_version})
GTK+ support: gtk+-${gtk_version}
po/POTFILES.in
1
1
src/gleak.c
src/gleaker.c
po/gleak.pot
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR eNTiDi Software
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: ntd@entidi.it\n"
"POT-Creation-Date: 2013-02-28 12:06+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"
#: src/gleak.c:43
msgid "- An application for handling leak detection systems"
msgstr ""
po/gleaker.pot
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR eNTiDi Software
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: ntd@entidi.it\n"
"POT-Creation-Date: 2013-04-03 11:49+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"
#: src/gleaker.c:43
msgid "- An application for handling leak detection systems"
msgstr ""
po/it.po
77
88
99
10
10
1111
1212
1313
......
1616
1717
1818
19
19
2020
2121
msgstr ""
"Project-Id-Version: gleak 0.0.1\n"
"Report-Msgid-Bugs-To: ntd@entidi.it\n"
"POT-Creation-Date: 2013-02-28 12:06+0100\n"
"POT-Creation-Date: 2013-04-03 11:49+0200\n"
"PO-Revision-Date: 2013-02-27 16:10+0100\n"
"Last-Translator: Nicola Fontana <ntd@entidi.it>\n"
"Language-Team: Italian <it@li.org>\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: src/gleak.c:43
#: src/gleaker.c:43
msgid "- An application for handling leak detection systems"
msgstr "- Applicazione di gestione sistemi di controllo tenuta"
src/.gitignore
11
22
33
4
4
55
*.o
/config.h
/config.h.in
/gleak
/gleaker
/stamp-h1
src/Makefile.am
11
22
33
4
5
6
4
5
6
77
8
8
99
1010
11
11
1212
include $(top_srcdir)/build/Makefile.am.common
bin_PROGRAMS=gleak
gleak_SOURCES=gleak.c \
gleak.h \
bin_PROGRAMS=gleaker
gleaker_SOURCES=gleaker.c \
gleaker.h \
gettext.h
gleak_CFLAGS=-I$(top_srcdir)/src \
gleaker_CFLAGS=-I$(top_srcdir)/src \
$(GOFFICE_CFLAGS) \
$(GTK_CFLAGS)
gleak_LDADD=$(GOFFICE_LIBS) \
gleaker_LDADD=$(GOFFICE_LIBS) \
$(GTK_LIBS)
src/gleak.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/* gleak - A program for handling leak detection systems
*
* Copyright (C) 2013 Nicola Fontana <ntd at entidi.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
#include <gtk/gtk.h>
#include <stdlib.h>
#include "gleak.h"
static void
version(void)
{
g_print(PACKAGE_TARNAME " " PACKAGE_VERSION "\n");
exit(0);
}
static void
parse_args(gint *p_argc, gchar **p_argv[])
{
GError *error = NULL;
GOptionEntry entries[] = {
{"version", 'V', G_OPTION_FLAG_NO_ARG, G_OPTION_ARG_CALLBACK,
version, "Display version information", NULL},
{NULL}
};
gtk_init_with_args(p_argc, p_argv, _("- An application for handling leak detection systems"),
entries, NULL, &error);
if (error != NULL) {
g_error("%s", error->message);
g_error_free(error);
}
}
gint
main(gint argc, gchar **argv)
{
parse_args(&argc, &argv);
return 0;
}
src/gleak.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/* gleak - A program for handling leak detection systems
*
* Copyright (C) 2013 Nicola Fontana <ntd at entidi.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __GLEAK_H__
#define __GLEAK_H__
#include "config.h"
#ifdef ENABLE_NLS
#include "gettext.h"
#define _(String) gettext(String)
#define gettext_noop(String) String
#define N_(String) gettext_noop(String)
#else /* ! ENABLE_NLS */
#define _(String) (String)
#define N_(String) String
#define textdomain(Domain)
#define bindtextdomain(Package, Directory)
#endif /* ENABLE_NLS */
#endif /* __GLEAK_H__ */
src/gleak.ui
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<!-- interface-requires gtk+ 3.0 -->
<object class="GtkAdjustment" id="adjDuration">
<property name="upper">100</property>
<property name="step_increment">1</property>
<property name="page_increment">10</property>
</object>
<object class="GtkWindow" id="GLeak">
<property name="can_focus">False</property>
<property name="title" translatable="yes">GLeak system v.@VERSION@</property>
<property name="startup_id">Gleak</property>
<child>
<object class="GtkNotebook" id="notebook1">
<property name="visible">True</property>
<property name="can_focus">True</property>
<child>
<placeholder/>
</child>
<child type="tab">
<object class="GtkLabel" id="lblGraph">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0.4699999988079071</property>
<property name="label" translatable="yes">Graph</property>
</object>
<packing>
<property name="tab_fill">False</property>
</packing>
</child>
<child>
<object class="GtkNotebook" id="notebook2">
<property name="visible">True</property>
<property name="can_focus">True</property>
<child>
<object class="GtkGrid" id="grid1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<child>
<object class="GtkLabel" id="label1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Duration</property>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkScale" id="scale1">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="adjustment">adjDuration</property>
<property name="fill_level">0</property>
<property name="round_digits">0</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
</object>
</child>
<child type="tab">
<object class="GtkLabel" id="lblImmission">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Immission</property>
</object>
<packing>
<property name="tab_fill">False</property>
</packing>
</child>
<child>
<placeholder/>
</child>
<child type="tab">
<object class="GtkLabel" id="lblStabilization">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Stabilization</property>
</object>
<packing>
<property name="position">1</property>
<property name="tab_fill">False</property>
</packing>
</child>
<child>
<placeholder/>
</child>
<child type="tab">
<object class="GtkLabel" id="lblTesting">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Testing</property>
</object>
<packing>
<property name="position">2</property>
<property name="tab_fill">False</property>
</packing>
</child>
</object>
<packing>
<property name="position">1</property>
</packing>
</child>
<child type="tab">
<object class="GtkLabel" id="lblParameters">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="margin_bottom">1</property>
<property name="xalign">0.47999998927116394</property>
<property name="label" translatable="yes">Parameters</property>
</object>
<packing>
<property name="position">1</property>
<property name="tab_fill">False</property>
</packing>
</child>
<child>
<placeholder/>
</child>
<child type="tab">
<object class="GtkLabel" id="lblBehavior">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Behavior</property>
</object>
<packing>
<property name="position">2</property>
<property name="tab_fill">False</property>
</packing>
</child>
</object>
</child>
</object>
</interface>
src/gleaker.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/* gleaker - A program for handling leak detection systems
*
* Copyright (C) 2013 Nicola Fontana <ntd at entidi.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
#include <gtk/gtk.h>
#include <stdlib.h>
#include "gleaker.h"
static void
version(void)
{
g_print(PACKAGE_TARNAME " " PACKAGE_VERSION "\n");
exit(0);
}
static void
parse_args(gint *p_argc, gchar **p_argv[])
{
GError *error = NULL;
GOptionEntry entries[] = {
{"version", 'V', G_OPTION_FLAG_NO_ARG, G_OPTION_ARG_CALLBACK,
version, "Display version information", NULL},
{NULL}
};
gtk_init_with_args(p_argc, p_argv, _("- An application for handling leak detection systems"),
entries, NULL, &error);
if (error != NULL) {
g_error("%s", error->message);
g_error_free(error);
}
}
gint
main(gint argc, gchar **argv)
{
parse_args(&argc, &argv);
return 0;
}
src/gleaker.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/* gleaker - A program for handling leak detection systems
*
* Copyright (C) 2013 Nicola Fontana <ntd at entidi.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __GLEAKER_H__
#define __GLEAKER_H__
#include "config.h"
#ifdef ENABLE_NLS
#include "gettext.h"
#define _(String) gettext(String)
#define gettext_noop(String) String
#define N_(String) gettext_noop(String)
#else /* ! ENABLE_NLS */
#define _(String) (String)
#define N_(String) String
#define textdomain(Domain)
#define bindtextdomain(Package, Directory)
#endif /* ENABLE_NLS */
#endif /* __GLEAKER_H__ */
src/gleaker.ui
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<!-- interface-requires gtk+ 3.0 -->
<object class="GtkAdjustment" id="adjDuration">
<property name="upper">100</property>
<property name="step_increment">1</property>
<property name="page_increment">10</property>
</object>
<object class="GtkWindow" id="GLeaker">
<property name="can_focus">False</property>
<property name="title" translatable="yes">GLeaker system v.@VERSION@</property>
<property name="startup_id">Gleaker</property>
<child>
<object class="GtkNotebook" id="notebook1">
<property name="visible">True</property>
<property name="can_focus">True</property>
<child>
<placeholder/>
</child>
<child type="tab">
<object class="GtkLabel" id="lblGraph">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0.4699999988079071</property>
<property name="label" translatable="yes">Graph</property>
</object>
<packing>
<property name="tab_fill">False</property>
</packing>
</child>
<child>
<object class="GtkNotebook" id="notebook2">
<property name="visible">True</property>
<property name="can_focus">True</property>
<child>
<object class="GtkGrid" id="grid1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<child>
<object class="GtkLabel" id="label1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Duration</property>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkScale" id="scale1">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="adjustment">adjDuration</property>
<property name="fill_level">0</property>
<property name="round_digits">0</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
</object>
</child>
<child type="tab">
<object class="GtkLabel" id="lblImmission">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Immission</property>
</object>
<packing>
<property name="tab_fill">False</property>
</packing>
</child>
<child>
<placeholder/>
</child>
<child type="tab">
<object class="GtkLabel" id="lblStabilization">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Stabilization</property>
</object>
<packing>
<property name="position">1</property>
<property name="tab_fill">False</property>
</packing>
</child>
<child>
<placeholder/>
</child>
<child type="tab">
<object class="GtkLabel" id="lblTesting">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Testing</property>
</object>
<packing>
<property name="position">2</property>
<property name="tab_fill">False</property>
</packing>
</child>
</object>
<packing>
<property name="position">1</property>
</packing>
</child>
<child type="tab">
<object class="GtkLabel" id="lblParameters">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="margin_bottom">1</property>
<property name="xalign">0.47999998927116394</property>
<property name="label" translatable="yes">Parameters</property>
</object>
<packing>
<property name="position">1</property>
<property name="tab_fill">False</property>
</packing>
</child>
<child>
<placeholder/>
</child>
<child type="tab">
<object class="GtkLabel" id="lblBehavior">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Behavior</property>
</object>
<packing>
<property name="position">2</property>
<property name="tab_fill">False</property>
</packing>
</child>
</object>
</child>
</object>
</interface>

Archive Download the corresponding diff file

Branches