diff options
author | rafaelhlima <rafael.palma.lima@gmail.com> | 2022-01-28 10:42:27 -0300 |
---|---|---|
committer | Rafael Lima <rafael.palma.lima@gmail.com> | 2022-02-04 19:03:23 +0100 |
commit | c7923851d10e2dda9deb414dee67c4813d93bc87 (patch) | |
tree | 7d37c2a4a0ef01e56e9a949a898f583fa7bd4bdc /sw | |
parent | 9f0d27c973323f522a4ca2bce557e1c095d32f77 (diff) |
tdf#146893 Remove extra buttons from Manage Changes sidebar
After commit 2e1a38ceb6866248ec30f6fe58cd3adc1b910eec that moved the command buttons in the Manage Changes dialog to the List tab, the Manage Changes sidebar started showing the buttons twice.
This patch remove the duplicated buttons from the sidebar.
Change-Id: I767e88ba9ca7595913b6ddc57d152febd595f504
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129103
Tested-by: Jenkins
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/uibase/sidebar/SwPanelFactory.cxx | 2 | ||||
-rw-r--r-- | sw/uiconfig/swriter/ui/managechangessidebar.ui | 148 |
2 files changed, 26 insertions, 124 deletions
diff --git a/sw/source/uibase/sidebar/SwPanelFactory.cxx b/sw/source/uibase/sidebar/SwPanelFactory.cxx index 9dd70c0f3227..5dcd0f389216 100644 --- a/sw/source/uibase/sidebar/SwPanelFactory.cxx +++ b/sw/source/uibase/sidebar/SwPanelFactory.cxx @@ -167,7 +167,7 @@ Reference<ui::XUIElement> SAL_CALL SwPanelFactory::createUIElement ( rsResourceURL, xFrame, std::move(xPanel), - ui::LayoutSize(-1,-1,-1)); + ui::LayoutSize(0,-1,-1)); } else if (rsResourceURL.endsWith("/WriterInspectorTextPanel")) { diff --git a/sw/uiconfig/swriter/ui/managechangessidebar.ui b/sw/uiconfig/swriter/ui/managechangessidebar.ui index bdb99548668d..681264f9a864 100644 --- a/sw/uiconfig/swriter/ui/managechangessidebar.ui +++ b/sw/uiconfig/swriter/ui/managechangessidebar.ui @@ -1,23 +1,24 @@ <?xml version="1.0" encoding="UTF-8"?> +<!-- Generated with glade 3.38.2 --> <interface domain="sw"> <requires lib="gtk+" version="3.20"/> <!-- n-columns=1 n-rows=1 --> <object class="GtkGrid" id="ManageChangesPanel"> <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="row_homogeneous">True</property> - <property name="column_homogeneous">True</property> + <property name="can-focus">False</property> + <property name="row-homogeneous">True</property> + <property name="column-homogeneous">True</property> <child> <object class="GtkBox" id="box1"> <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="border_width">6</property> + <property name="can-focus">False</property> + <property name="border-width">6</property> <property name="orientation">vertical</property> <property name="spacing">12</property> <child> <object class="GtkBox" id="box9"> <property name="visible">True</property> - <property name="can_focus">False</property> + <property name="can-focus">False</property> <property name="hexpand">True</property> <property name="vexpand">True</property> <property name="orientation">vertical</property> @@ -26,7 +27,7 @@ <!-- n-columns=1 n-rows=1 --> <object class="GtkGrid" id="content_area"> <property name="visible">True</property> - <property name="can_focus">False</property> + <property name="can-focus">False</property> <property name="hexpand">True</property> <property name="vexpand">True</property> <child> @@ -39,103 +40,6 @@ <property name="position">0</property> </packing> </child> - <child> - <!-- n-columns=1 n-rows=1 --> - <object class="GtkGrid" id="grid1"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="row_spacing">6</property> - <property name="column_spacing">6</property> - <child> - <object class="GtkButton" id="accept"> - <property name="label" translatable="yes" context="managechangessidebar|accept">_Accept</property> - <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="receives_default">True</property> - <property name="hexpand">True</property> - <property name="use_underline">True</property> - </object> - <packing> - <property name="left_attach">0</property> - <property name="top_attach">0</property> - <property name="width">1</property> - <property name="height">1</property> - </packing> - </child> - <child> - <object class="GtkButton" id="reject"> - <property name="label" translatable="yes" context="managechangessidebar|reject">_Reject</property> - <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="receives_default">True</property> - <property name="hexpand">True</property> - <property name="use_underline">True</property> - </object> - <packing> - <property name="left_attach">1</property> - <property name="top_attach">0</property> - <property name="width">1</property> - <property name="height">1</property> - </packing> - </child> - <child> - <object class="GtkButton" id="acceptall"> - <property name="label" translatable="yes" context="managechangessidebar|acceptall">A_ccept All</property> - <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="receives_default">True</property> - <property name="hexpand">True</property> - <property name="use_underline">True</property> - </object> - <packing> - <property name="left_attach">0</property> - <property name="top_attach">1</property> - <property name="width">1</property> - <property name="height">1</property> - </packing> - </child> - <child> - <object class="GtkButton" id="rejectall"> - <property name="label" translatable="yes" context="managechangessidebar|rejectall">R_eject All</property> - <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="receives_default">True</property> - <property name="hexpand">True</property> - <property name="use_underline">True</property> - </object> - <packing> - <property name="left_attach">1</property> - <property name="top_attach">1</property> - <property name="width">1</property> - <property name="height">1</property> - </packing> - </child> - <child> - <object class="GtkButton" id="undo"> - <property name="label" translatable="yes" context="managechangessidebar|undo">_Undo</property> - <property name="can_focus">True</property> - <property name="receives_default">True</property> - <property name="no_show_all">True</property> - <property name="hexpand">True</property> - <property name="use_underline">True</property> - </object> - <packing> - <property name="left_attach">1</property> - <property name="top_attach">2</property> - <property name="width">1</property> - <property name="height">1</property> - </packing> - </child> - <child> - <placeholder/> - </child> - </object> - <packing> - <property name="expand">False</property> - <property name="fill">True</property> - <property name="position">1</property> - </packing> - </child> </object> <packing> <property name="expand">False</property> @@ -145,74 +49,72 @@ </child> </object> <packing> - <property name="left_attach">0</property> - <property name="top_attach">0</property> - <property name="width">1</property> - <property name="height">1</property> + <property name="left-attach">0</property> + <property name="top-attach">0</property> </packing> </child> </object> <object class="GtkMenu" id="writermenu"> <property name="visible">True</property> - <property name="can_focus">False</property> + <property name="can-focus">False</property> <child> <object class="GtkMenuItem" id="writeredit"> <property name="visible">True</property> - <property name="can_focus">False</property> + <property name="can-focus">False</property> <property name="label" translatable="yes" context="managechangessidebar|writeredit">Edit Comment...</property> </object> </child> <child> <object class="GtkMenuItem" id="writersort"> <property name="visible">True</property> - <property name="can_focus">False</property> + <property name="can-focus">False</property> <property name="label" translatable="yes" context="managechangessidebar|writersort">Sort By</property> - <property name="use_underline">True</property> + <property name="use-underline">True</property> <child type="submenu"> <object class="GtkMenu" id="writersortmenu"> <property name="visible">True</property> - <property name="can_focus">False</property> + <property name="can-focus">False</property> <child> <object class="GtkRadioMenuItem" id="writersort0"> <property name="visible">True</property> - <property name="can_focus">False</property> + <property name="can-focus">False</property> <property name="label" translatable="yes" context="managechangessidebar|writeraction">Action</property> - <property name="use_underline">True</property> + <property name="use-underline">True</property> </object> </child> <child> <object class="GtkRadioMenuItem" id="writersort1"> <property name="visible">True</property> - <property name="can_focus">False</property> + <property name="can-focus">False</property> <property name="label" translatable="yes" context="managechangessidebar|writerauthor">Author</property> - <property name="use_underline">True</property> + <property name="use-underline">True</property> <property name="group">writersort0</property> </object> </child> <child> <object class="GtkRadioMenuItem" id="writersort2"> <property name="visible">True</property> - <property name="can_focus">False</property> + <property name="can-focus">False</property> <property name="label" translatable="yes" context="managechangessidebar|writerdate">Date</property> - <property name="use_underline">True</property> + <property name="use-underline">True</property> <property name="group">writersort0</property> </object> </child> <child> <object class="GtkRadioMenuItem" id="writersort3"> <property name="visible">True</property> - <property name="can_focus">False</property> + <property name="can-focus">False</property> <property name="label" translatable="yes" context="managechangessidebar|writerdesc">Comment</property> - <property name="use_underline">True</property> + <property name="use-underline">True</property> <property name="group">writersort0</property> </object> </child> <child> <object class="GtkRadioMenuItem" id="writersort4"> <property name="visible">True</property> - <property name="can_focus">False</property> + <property name="can-focus">False</property> <property name="label" translatable="yes" context="managechangessidebar|writerposition">Document Position</property> - <property name="use_underline">True</property> + <property name="use-underline">True</property> <property name="group">writersort0</property> </object> </child> |