GLeaker

GLeaker Commit Details

Date:2013-04-17 09:36:02 (7 years 2 months ago)
Author:Nicola Fontana
Branch:master
Commit:700c2234907ef8b874bef7f02bc8051c68410612
Parents: 38738947dce1524833873e1b90fb5fb8e84b35ff
Message:Added ckbUntilEnd handling

Changes:
Msrc/gleaker.c (6 diffs)
Msrc/gleaker.ui (1 diff)

File differences

src/gleaker.c
107107
108108
109109
110
110111
111112
112113
......
123124
124125
125126
127
126128
127129
128130
......
139141
140142
141143
144
142145
143146
144147
145148
146149
147150
151
148152
149153
150154
155
151156
152157
153158
......
161166
162167
163168
164
169
165170
166171
167172
173
174
175
176
177
178
179
180
181
168182
169183
170184
171185
172
173
174
186
187
188
189
190
191
192
193
194
195
196
197
198
175199
176200
177201
......
182206
183207
184208
209
210
211
212
213
214
215
216
185217
186218
187219
......
204236
205237
206238
239
207240
208241
209242
gdouble test_time;
gdouble min_leakage;
gdouble max_leakage;
gboolean until_end;
gdouble drain_delay;
};
setup->test_time = 0;
setup->min_leakage = 0;
setup->max_leakage = 0;
setup->until_end = FALSE;
setup->drain_delay = 0;
return setup;
"test_time = %lf\n"
"min_leakage = %lf\n"
"max_leakage = %lf\n"
"until_end = %s\n"
"drain_delay = %lf\n",
setup->changed ? "TRUE" : "FALSE",
setup->min_pressure, setup->max_pressure,
setup->immission_time, setup->decay_time, setup->test_time,
setup->min_leakage, setup->max_leakage,
setup->until_end ? "TRUE" : "FALSE",
setup->drain_delay);
}
static GleakerSetup *
default_setup(void)
{
}
static void
adjustment_changed(GtkAdjustment *adjustment, gdouble *value)
default_setup_changed(void)
{
GleakerSetup *setup;
setup = default_setup();
setup->changed = TRUE;
gleaker_setup_dump(setup);
}
static void
adjustment_changed(GtkAdjustment *adjustment, gdouble *value)
{
if (value != NULL) {
*value = gtk_adjustment_get_value(adjustment);
}
setup = default_setup();
setup->changed = TRUE;
gleaker_setup_dump(setup);
default_setup_changed();
}
static void
flag_toggled(GtkToggleButton *toggle_button, gboolean *value)
{
GleakerSetup *setup;
if (value != NULL) {
*value = gtk_toggle_button_get_active(toggle_button);
}
default_setup_changed();
}
#define SETUP_VALUE(variable, widget) \
variable); \
}G_STMT_END
#define SETUP_FLAG(variable, widget) \
G_STMT_START{ \
GObject *object = gtk_builder_get_object(builder, (widget)); \
g_signal_connect(object, "toggled", \
G_CALLBACK(flag_toggled), \
variable); \
}G_STMT_END
static GtkWidget *
get_main_window(GtkBuilder *builder)
{
SETUP_VALUE(& setup->test_time, "adjTestTime");
SETUP_VALUE(& setup->min_leakage, "adjMinLeakage");
SETUP_VALUE(& setup->max_leakage, "adjMaxLeakage");
SETUP_FLAG (& setup->until_end, "ckbUntilEnd");
SETUP_VALUE(& setup->drain_delay, "adjDrainDelay");
return window;
src/gleaker.ui
250250
251251
252252
253
253
254254
255255
256256
</packing>
</child>
<child>
<object class="GtkCheckButton" id="ckbWaitUntilEnd">
<object class="GtkCheckButton" id="ckbUntilEnd">
<property name="label" translatable="yes">Always wait until the end of the test time</property>
<property name="use_action_appearance">False</property>
<property name="visible">True</property>

Archive Download the corresponding diff file

Branches