diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-01-24 15:47:40 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-01-25 18:31:41 +0100 |
commit | 2f4dda0a26fba2555641debdc84ec2ece1433ec6 (patch) | |
tree | 99ea44514b47baeb0e9a9ce88985a9bdbce2d209 /cui | |
parent | 4623b903e16c379a56c63c31ba84cf447bcfe7f9 (diff) |
Related: tdf#128942 remove the scrolledwindow frames from all the dialcontrols
Change-Id: I445753ad1eb4d441e5a5e909ae450bda6013a6b3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87352
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/tabpages/align.cxx | 2 | ||||
-rw-r--r-- | cui/source/tabpages/transfrm.cxx | 2 | ||||
-rw-r--r-- | cui/uiconfig/ui/cellalignment.ui | 41 | ||||
-rw-r--r-- | cui/uiconfig/ui/rotationtabpage.ui | 1 |
4 files changed, 16 insertions, 30 deletions
diff --git a/cui/source/tabpages/align.cxx b/cui/source/tabpages/align.cxx index efa1b35a9efc..a0ecb03c7f69 100644 --- a/cui/source/tabpages/align.cxx +++ b/cui/source/tabpages/align.cxx @@ -132,7 +132,7 @@ AlignmentTabPage::AlignmentTabPage(weld::Container* pPage, weld::DialogControlle , m_xOrientFrame(m_xBuilder->weld_widget("orientation")) , m_xPropertiesFrame(m_xBuilder->weld_widget("properties")) , m_xVsRefEdge(new weld::CustomWeld(*m_xBuilder, "references", m_aVsRefEdge)) - , m_xCtrlDial(new DialControl(m_xBuilder->weld_scrolled_window("anglepreview"))) + , m_xCtrlDial(new DialControl) , m_xCtrlDialWin(new weld::CustomWeld(*m_xBuilder, "dialcontrol", *m_xCtrlDial)) { m_xCtrlDial->SetLinkedField(m_xNfRotate.get()); diff --git a/cui/source/tabpages/transfrm.cxx b/cui/source/tabpages/transfrm.cxx index 90def10a4323..fc4743fbde2d 100644 --- a/cui/source/tabpages/transfrm.cxx +++ b/cui/source/tabpages/transfrm.cxx @@ -177,7 +177,7 @@ SvxAngleTabPage::SvxAngleTabPage(weld::Container* pPage, weld::DialogController* , m_xCtlRect(new weld::CustomWeld(*m_xBuilder, "CTL_RECT", m_aCtlRect)) , m_xFlAngle(m_xBuilder->weld_widget("FL_ANGLE")) , m_xNfAngle(m_xBuilder->weld_metric_spin_button("NF_ANGLE", FieldUnit::DEGREE)) - , m_xCtlAngle(new svx::DialControl(m_xBuilder->weld_scrolled_window("anglepreview"))) + , m_xCtlAngle(new svx::DialControl) , m_xCtlAngleWin(new weld::CustomWeld(*m_xBuilder, "CTL_ANGLE", *m_xCtlAngle)) { // calculate PoolUnit diff --git a/cui/uiconfig/ui/cellalignment.ui b/cui/uiconfig/ui/cellalignment.ui index ed26edc39796..a9074c61a943 100644 --- a/cui/uiconfig/ui/cellalignment.ui +++ b/cui/uiconfig/ui/cellalignment.ui @@ -119,34 +119,6 @@ </packing> </child> <child> - <object class="GtkScrolledWindow" id="preview"> - <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="hscrollbar_policy">never</property> - <property name="vscrollbar_policy">never</property> - <property name="shadow_type">in</property> - <child> - <object class="GtkViewport"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <child> - <object class="GtkDrawingArea" id="dialcontrol"> - <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="events">GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK | GDK_KEY_PRESS_MASK | GDK_KEY_RELEASE_MASK | GDK_STRUCTURE_MASK</property> - <property name="halign">center</property> - <property name="valign">center</property> - </object> - </child> - </object> - </child> - </object> - <packing> - <property name="left_attach">1</property> - <property name="top_attach">1</property> - </packing> - </child> - <child> <object class="GtkGrid" id="grid4"> <property name="visible">True</property> <property name="can_focus">False</property> @@ -191,6 +163,19 @@ </packing> </child> <child> + <object class="GtkDrawingArea" id="dialcontrol"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="events">GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK | GDK_KEY_PRESS_MASK | GDK_KEY_RELEASE_MASK | GDK_STRUCTURE_MASK</property> + <property name="halign">center</property> + <property name="valign">center</property> + </object> + <packing> + <property name="left_attach">1</property> + <property name="top_attach">1</property> + </packing> + </child> + <child> <placeholder/> </child> </object> diff --git a/cui/uiconfig/ui/rotationtabpage.ui b/cui/uiconfig/ui/rotationtabpage.ui index 5d3f9a1acbe5..7a89884eaa0e 100644 --- a/cui/uiconfig/ui/rotationtabpage.ui +++ b/cui/uiconfig/ui/rotationtabpage.ui @@ -276,6 +276,7 @@ <property name="can_focus">False</property> <property name="label" translatable="yes" context="rotationtabpage|FT_ANGLEPRESETS">Default _settings:</property> <property name="use_underline">True</property> + <property name="mnemonic_widget">CTL_ANGLE</property> </object> <packing> <property name="expand">False</property> |