Call GuiMonitor::link_elements before GuiMonitor::connect_signals.
It doesn't seem safe to set up callbacks before the GUI elements are
fully initialized.
Signed-off-by: Colin McCabe <colinm@hq.newdream.net>
if (!open_icon(PGIcon, resource_path(PG_ICON_PATH)))
return false;
- // connect callbacks to their corresponding signals.
- connect_signals();
-
// Link elements (e.g., text buffers, list stores, etc.) to their
// containers (e.g., text views, list views, etc.)
link_elements();
+ // connect callbacks to their corresponding signals.
+ connect_signals();
+
thread = new GuiMonitorThread(this);
thread->create();
return true;