aboutsummaryrefslogtreecommitdiffstats
path: root/src/camorama-window.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>2021-03-30 17:12:27 +0200
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2021-03-30 17:42:01 +0200
commit02e4aba56ff86e95482c27866e68c9b7f4fc8d1e (patch)
tree5b09ab6ae497cf0ffbcf2de3dcc3bf2ffd1131f8 /src/camorama-window.c
parentd26ed7993a0a6048764f836e391df96dbb80f575 (diff)
callbacks: Give more scale flexibility with Gtk3
Allow scaling up to the monitor resolution, starting from 320 columns. With that, starts camorama with its screen maximized. Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'src/camorama-window.c')
-rw-r--r--src/camorama-window.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/camorama-window.c b/src/camorama-window.c
index 337032f..88f44cf 100644
--- a/src/camorama-window.c
+++ b/src/camorama-window.c
@@ -511,9 +511,9 @@ void load_interface(cam_t *cam)
gtk_widget_set_sensitive(GTK_WIDGET(gtk_builder_get_object(cam->xml, "string_entry")),
cam->usestring);
- // Detect window resize calls
#if GTK_MAJOR_VERSION >= 3
- g_signal_connect(window,
+ // Detect window resize calls
+ g_signal_connect(GTK_WIDGET(gtk_builder_get_object(cam->xml, "da")),
"configure-event", G_CALLBACK(on_configure_event), cam);
#endif
}

Privacy Policy