GLeaker

GLeaker Commit Details

Date:2013-04-17 10:50:19 (4 years 9 months ago)
Author:Nicola Fontana
Branch:master
Commit:5b9d48d8a87c869c2674719207e6fdcdb600a544
Parents: c29fdb2fa510bf47b453311931532b2f927a7a16
Message:Added libgoffice initialization and shutdown

Changes:
Msrc/gleaker.c (3 diffs)

File differences

src/gleaker.c
222222
223223
224224
225
226
227
225
228226
229
230227
231228
232229
......
237234
238235
239236
237
238
239
240
241
242
243
240244
241245
242246
247
248
249
250
251
252
243253
244254
245255
......
262272
263273
264274
275
265276
266277
if (window == NULL)
return NULL;
g_signal_connect(window, "delete-event",
G_CALLBACK(gtk_main_quit), NULL);
/* Bind GleakerSetup to the user interface widgets */
setup = default_setup();
SETUP_VALUE(& setup->min_pressure, "adjMinPressure");
SETUP_VALUE(& setup->max_pressure, "adjMaxPressure");
SETUP_VALUE(& setup->immission_time, "adjImmissionTime");
SETUP_FLAG (& setup->until_end, "ckbUntilEnd");
SETUP_VALUE(& setup->drain_delay, "adjDrainDelay");
/* Connect signals */
g_signal_connect(window, "delete-event",
G_CALLBACK(gtk_main_quit), NULL);
/* Add goffice support */
libgoffice_init();
return window;
}
static void
shutdown(void)
{
libgoffice_shutdown();
}
gint
main(gint argc, gchar **argv)
{
gtk_widget_show_all(window);
gtk_main();
shutdown();
return 0;
}

Archive Download the corresponding diff file

Branches