[niepce/gtk4: 9/10] gtk4: set canvas widget expand
- From: Hubert Figuière <hub src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [niepce/gtk4: 9/10] gtk4: set canvas widget expand
- Date: Mon, 21 Mar 2022 05:01:23 +0000 (UTC)
commit 2924d1221c177083aafe2679c4aa675c64623289
Author: Hubert Figuière <hub figuiere net>
Date: Mon Mar 21 00:01:39 2022 -0400
gtk4: set canvas widget expand
src/niepce/modules/darkroom/darkroommodule.cpp | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/src/niepce/modules/darkroom/darkroommodule.cpp b/src/niepce/modules/darkroom/darkroommodule.cpp
index c31db1e..b881d98 100644
--- a/src/niepce/modules/darkroom/darkroommodule.cpp
+++ b/src/niepce/modules/darkroom/darkroommodule.cpp
@@ -106,6 +106,8 @@ Gtk::Widget * DarkroomModule::buildWidget()
ncr::init();
m_widget = &m_dr_splitview;
m_imagecanvas = Gtk::manage(new ImageCanvas());
+ m_imagecanvas->set_hexpand(true);
+ m_imagecanvas->set_vexpand(true);
// TODO set a proper canvas size
// m_canvas_scroll.add(*m_imagecanvas);
m_vbox.append(*m_imagecanvas);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]