[Libreoffice-commits] core.git: sfx2/source sfx2/uiconfig
Tomaž Vajngerl (via logerrit)
logerrit at kemper.freedesktop.org
Thu Mar 11 11:47:50 UTC 2021
sfx2/source/devtools/ObjectInspectorTreeHandler.cxx | 5 +++++
sfx2/uiconfig/ui/developmenttool.ui | 18 ++++++++++++++++--
2 files changed, 21 insertions(+), 2 deletions(-)
New commits:
commit 8839ea90176a38e07ca8a36f5a33e9cbe2b4fcef
Author: Tomaž Vajngerl <tomaz.vajngerl at collabora.co.uk>
AuthorDate: Thu Mar 4 15:30:19 2021 +0900
Commit: Tomaž Vajngerl <quikee at gmail.com>
CommitDate: Thu Mar 11 12:46:59 2021 +0100
devtools: add refresh to toolbar for the object inspector
Change-Id: I6ffaf9f77d9fcb80571d277f4c9cd153388c78cc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112109
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee at gmail.com>
diff --git a/sfx2/source/devtools/ObjectInspectorTreeHandler.cxx b/sfx2/source/devtools/ObjectInspectorTreeHandler.cxx
index 5d3d8049d467..7f969ae24464 100644
--- a/sfx2/source/devtools/ObjectInspectorTreeHandler.cxx
+++ b/sfx2/source/devtools/ObjectInspectorTreeHandler.cxx
@@ -786,6 +786,11 @@ IMPL_LINK(ObjectInspectorTreeHandler, ToolbarButtonClicked, const OString&, rSel
inspectObject(xInterface);
}
}
+ else if (rSelectionId == "refresh")
+ {
+ auto rPageId = mpObjectInspectorNotebook->get_current_page_ident();
+ NotebookEnterPage(rPageId);
+ }
}
IMPL_LINK(ObjectInspectorTreeHandler, NotebookEnterPage, const OString&, rPageId, void)
diff --git a/sfx2/uiconfig/ui/developmenttool.ui b/sfx2/uiconfig/ui/developmenttool.ui
index b915d1f6f12d..8326083cde5a 100644
--- a/sfx2/uiconfig/ui/developmenttool.ui
+++ b/sfx2/uiconfig/ui/developmenttool.ui
@@ -426,7 +426,7 @@
<object class="GtkToolButton" id="back">
<property name="visible">True</property>
<property name="can-focus">False</property>
- <property name="tooltip-text" translatable="yes" context="developmenttool|back">Back</property>
+ <property name="tooltip-text" translatable="yes" context="developmenttool|tooltip-back">Back</property>
<property name="label" translatable="yes" context="developmenttool|back">Back</property>
<property name="use-underline">True</property>
<property name="icon-name">cmd/lc_prevrecord.png</property>
@@ -440,7 +440,7 @@
<object class="GtkToolButton" id="inspect">
<property name="visible">True</property>
<property name="can-focus">False</property>
- <property name="tooltip-text" translatable="yes" context="developmenttool|inspect">Inspect</property>
+ <property name="tooltip-text" translatable="yes" context="developmenttool|tooltip-inspect">Inspect</property>
<property name="label" translatable="yes" context="developmenttool|inspect">Inspect</property>
<property name="use-underline">True</property>
<property name="icon-name">cmd/lc_recsearch.png</property>
@@ -450,6 +450,20 @@
<property name="homogeneous">True</property>
</packing>
</child>
+ <child>
+ <object class="GtkToolButton" id="refresh">
+ <property name="visible">True</property>
+ <property name="can-focus">False</property>
+ <property name="tooltip-text" translatable="yes" context="developmenttool|tooltip-refresh">Refresh</property>
+ <property name="label" translatable="yes" context="developmenttool|refresh">Refresh</property>
+ <property name="use-underline">True</property>
+ <property name="icon-name">cmd/lc_reload.png</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="homogeneous">True</property>
+ </packing>
+ </child>
</object>
<packing>
<property name="expand">False</property>
More information about the Libreoffice-commits
mailing list