|
|
|
|
@ -24,7 +24,7 @@ Config config;
|
|
|
|
|
ModbusSrv modbussrv;
|
|
|
|
|
GtkBuilder *_builder_ = NULL; // work around for the thread situation
|
|
|
|
|
uint16_t modbusdata[4][0x10000]; // needed for work with the gui will by synced by the modbus call back functions
|
|
|
|
|
int gnome_dblclick_timeout = 250;
|
|
|
|
|
int gnome_dblclick_timeout = 500;
|
|
|
|
|
gboolean modbus_callback(gpointer data);
|
|
|
|
|
|
|
|
|
|
int main (int argc, char **argv) {
|
|
|
|
|
@ -42,6 +42,8 @@ int main (int argc, char **argv) {
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
|
// read out some gnome defined values
|
|
|
|
|
#if defined _WIN32 || defined _WIN64 || defined __CYGWIN__
|
|
|
|
|
#else
|
|
|
|
|
GSettings *settings;
|
|
|
|
|
GError *error = NULL;
|
|
|
|
|
|
|
|
|
|
@ -57,7 +59,7 @@ int main (int argc, char **argv) {
|
|
|
|
|
gnome_dblclick_timeout = g_settings_get_int(settings, "double-click");
|
|
|
|
|
printf("Die aktuelle Doppelklickzeit beträgt: %d ms\n", gnome_dblclick_timeout);
|
|
|
|
|
g_object_unref(settings);
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
gtk_init (&argc, &argv);
|
|
|
|
|
_builder_ = builder = gtk_builder_new ();
|
|
|
|
|
|