aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-09-07 07:59:26 -0300
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-09-07 11:42:46 -0300
commit8b059951c00db1e1befa59185e1945ccd181fe09 (patch)
treeaf243a189558a53234abad1a48003e893e8d289f
parentd2631c3bf55ce62c16e5d6b56d2d39fe12a0db97 (diff)
main: Store camera device
We have a key to store the camera device. Currently, it is only read from Gconf. It is useful to remember the last used device, so store it. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
-rw-r--r--src/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 9031235..facca97 100644
--- a/src/main.c
+++ b/src/main.c
@@ -255,6 +255,8 @@ static void activate(GtkApplication *app)
exit(1);
}
+ gconf_client_set_string(cam->gc, KEY_DEVICE, cam->video_dev, NULL);
+
load_interface(cam);
widget = GTK_WIDGET(gtk_builder_get_object(cam->xml, "da"));

Privacy Policy