summaryrefslogtreecommitdiff
path: root/extras
diff options
context:
space:
mode:
authorMaxim Monastirsky <momonasmon@gmail.com>2017-02-09 00:31:24 +0200
committerMaxim Monastirsky <momonasmon@gmail.com>2017-02-09 22:49:51 +0000
commit54d5b1828ec73d0475e0ddb6e31394a7e1904a1b (patch)
tree95ea5cb85d31f4cd9d79d0fedb600c5a556ba361 /extras
parent8dc38dd9b132805191e0d20d00fb7559121fda15 (diff)
tdf#105672 framework managed menu button
This adds a menu button that can use a popup menu controller to manage its menu. It supports 2 cases: - Use any controller that is registered in Controller.xcu, by specifing its .uno command. - Manage an arbitrary popup menu with MenuBarManager (assuming its items have proper .uno commands in their MenuItemData::aCommandStr). It means that a menu that was defined in a .ui file, can be used inside that .ui file without any additional code. This commit uses the new control to fix some currently non-working buttons in Calc's Notebookbar (but there are more that can be fixed the same way). It's not clear how long we will continue to use buttons (instead of toolboxes) for the Notebookbar, but hopefully this control will be useful in other places too. Change-Id: Ie00cde7cd7e39948948960ca2eff76e9db837109 Reviewed-on: https://gerrit.libreoffice.org/34103 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com>
Diffstat (limited to 'extras')
-rw-r--r--extras/source/glade/libreoffice-catalog.xml.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/extras/source/glade/libreoffice-catalog.xml.in b/extras/source/glade/libreoffice-catalog.xml.in
index 82f9ab484240..b842df22279d 100644
--- a/extras/source/glade/libreoffice-catalog.xml.in
+++ b/extras/source/glade/libreoffice-catalog.xml.in
@@ -850,5 +850,8 @@
<glade-widget-class title="Vertical box hiding childs depending on context" name="sfxlo-ContextVBox"
generic-name="ContextVBox" parent="GtkBox"
icon-name="widget-gtk-box"/>
+ <glade-widget-class title="Managed Menu Button" name="svtlo-ManagedMenuButton"
+ generic-name="ManagedMenuButton" parent="GtkButton"
+ icon-name="widget-gtk-button"/>
</glade-widget-classes>
</glade-catalog>