summaryrefslogtreecommitdiff
path: root/dw/ui.cc
diff options
context:
space:
mode:
Diffstat (limited to 'dw/ui.cc')
-rw-r--r--dw/ui.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/dw/ui.cc b/dw/ui.cc
index 540ead8f..f14d27aa 100644
--- a/dw/ui.cc
+++ b/dw/ui.cc
@@ -2,6 +2,7 @@
* Dillo Widget
*
* Copyright 2005-2007 Sebastian Geerken <sgeerken@dillo.org>
+ * Copyright 2024 Rodrigo Arias Mallo <rodarima@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -343,7 +344,8 @@ void ComplexButtonResource::init (Widget *widget)
{
childWidget = widget;
- layout = new Layout (createPlatform ());
+ /* FIXME: Buttons should not need a full Layout */
+ layout = new Layout (createPlatform (), false);
setLayout (layout);
DBG_OBJ_ASSOC_CHILD (layout);
layout->setWidget (widget);