Moved signal slot connections to separate function

This commit is contained in:
Markus Koch 2017-02-01 17:37:31 +01:00
parent 37afe16a7a
commit b5c1bd3613

View File

@ -63,8 +63,10 @@ static void mainWindow_configure_treeView(struct mainWindow *mainWindow)
COL_TAGS, "F",
COL_TIMESTAMP, 11,
-1);
}
/* debug 2 code here */
static void mainWindow_connect_signals(struct mainWindow *mainWindow)
{
g_signal_connect(mainWindow->dateStart,
"focus-in-event",
mainWindow_showPopover,
@ -103,6 +105,7 @@ struct mainWindow *mainWindow_new()
g_object_unref(G_OBJECT(builder));
mainWindow_configure_treeView(mainWindow);
mainWindow_connect_signals(mainWindow);
return mainWindow;
}