aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 5b434e3..257e4ee 100644
--- a/src/main.c
+++ b/src/main.c
@@ -217,6 +217,11 @@ int main(int argc, char *argv[])
load_interface(cam);
widget = GTK_WIDGET(gtk_builder_get_object(cam->xml, "da"));
+
+#if GTK_MAJOR_VERSION >= 3
+ g_signal_connect(G_OBJECT(widget), "draw", G_CALLBACK(draw_callback), cam);
+#endif
+
gtk_widget_show(widget);
cam->idle_id = g_idle_add((GSourceFunc) pt2Function, (gpointer) cam);

Privacy Policy