aboutsummaryrefslogtreecommitdiffstats
path: root/data
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-09-05 13:50:39 -0300
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-09-05 14:18:06 -0300
commit01fccdeaea087e73c933e71890908a6b6dc23ac1 (patch)
tree07cc0b86ac81cac09b580beed89ca4aeec8f125d /data
parent98a4baa241cfd710e27d51871f17bee3f60930cc (diff)
callbacks: use a callback to draw at GtkDrawingAreagtk3_improvements
Gtk 3 supports wayland, but there's a catch: while the current code works properly with X11, it doesn't draw anything inside the GtkDrawingArea on Wayland. The fix is trivial, but incompatible with Gtk2: instead of updating the drawing aea inside the main loop, a callback has to be used in order to handle gtk draw logic. As, at least for now, we want to keep supporting Gtk 2, let's add a compatibility code. That fixes drawing with Wayland. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'data')
-rw-r--r--data/camorama.ui1
1 files changed, 1 insertions, 0 deletions
diff --git a/data/camorama.ui b/data/camorama.ui
index 9f99b38..8a19cbe 100644
--- a/data/camorama.ui
+++ b/data/camorama.ui
@@ -1372,6 +1372,7 @@
<property name="height_request">240</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
+ <signal name="draw" handler="show_buffer" swapped="no"/>
</object>
</child>
</object>

Privacy Policy