commit c57d04908f9746a3923c36c0f41e1e23c6043550
Author: Juergen Spitzmueller <[email protected]>
Date:   Thu Dec 27 11:18:13 2018 +0100

    No need for an extra icon
---
 lib/Makefile.am                          |    3 ---
 lib/images/classic/dynamic-freefonts.png |  Bin 247 -> 0 bytes
 lib/images/dynamic-freefonts.svgz        |  Bin 4001 -> 0 bytes
 lib/images/oxygen/dynamic-freefonts.svgz |  Bin 51218 -> 0 bytes
 lib/ui/stdtoolbars.inc                   |    2 +-
 src/frontends/qt4/GuiToolbar.cpp         |    4 ++--
 src/frontends/qt4/GuiToolbar.h           |    2 +-
 7 files changed, 4 insertions(+), 7 deletions(-)

diff --git a/lib/Makefile.am b/lib/Makefile.am
index 032103e..3816d5c 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -473,7 +473,6 @@ dist_images_DATA1X = \
        images/down.svgz \
        images/dynamic-char-styles.svgz \
        images/dynamic-custom-insets.svgz \
-       images/dynamic-freefonts.svgz \
        images/editclear.svgz \
        images/emblem-readonly.svgz \
        images/emblem-shellescape.svgz \
@@ -1760,7 +1759,6 @@ dist_imagesoxygen_DATA1X = \
        images/oxygen/dialog-toggle_toc.svgz \
        images/oxygen/dynamic-char-styles.svgz \
        images/oxygen/dynamic-custom-insets.svgz \
-       images/oxygen/dynamic-freefonts.svgz \
        images/oxygen/down.svgz \
        images/oxygen/editclear.svgz \
        images/oxygen/ert-insert.svgz \
@@ -1967,7 +1965,6 @@ dist_imagesclassic_DATA = \
        images/classic/dialog-show_vclog.png  \
        images/classic/dialog-toggle_findreplaceadv.png  \
        images/classic/dialog-toggle_toc.png  \
-       images/classic/dynamic-freefonts.png \
        images/classic/down.png  \
        images/classic/ert-insert.png  \
        images/classic/file-open.png  \
diff --git a/lib/images/classic/dynamic-freefonts.png 
b/lib/images/classic/dynamic-freefonts.png
deleted file mode 100644
index a63ad1d..0000000
Binary files a/lib/images/classic/dynamic-freefonts.png and /dev/null differ
diff --git a/lib/images/dynamic-freefonts.svgz 
b/lib/images/dynamic-freefonts.svgz
deleted file mode 100644
index 5830eef..0000000
Binary files a/lib/images/dynamic-freefonts.svgz and /dev/null differ
diff --git a/lib/images/oxygen/dynamic-freefonts.svgz 
b/lib/images/oxygen/dynamic-freefonts.svgz
deleted file mode 100644
index 7a7ffd0..0000000
Binary files a/lib/images/oxygen/dynamic-freefonts.svgz and /dev/null differ
diff --git a/lib/ui/stdtoolbars.inc b/lib/ui/stdtoolbars.inc
index 4d862d8..4b20445 100644
--- a/lib/ui/stdtoolbars.inc
+++ b/lib/ui/stdtoolbars.inc
@@ -138,7 +138,7 @@ ToolbarSet
                Item "Include file" "dialog-show-new-inset include"
                Separator
                Item "Text properties" "dialog-show character"
-               DynamicMenu "dynamic-freefonts" "Apply recent text properties"
+               DynamicMenu "textstyle-apply" "Apply recent text properties"
                Item "Paragraph settings" "layout-paragraph"
                Item "Thesaurus" "thesaurus-entry"
        End
diff --git a/src/frontends/qt4/GuiToolbar.cpp b/src/frontends/qt4/GuiToolbar.cpp
index 006a353..0fba820 100644
--- a/src/frontends/qt4/GuiToolbar.cpp
+++ b/src/frontends/qt4/GuiToolbar.cpp
@@ -323,7 +323,7 @@ bool DynamicMenuButton::isMenuType(string const & s)
 {
        return s == "dynamic-custom-insets"
                || s == "dynamic-char-styles"
-               || s == "dynamic-freefonts"
+               || s == "textstyle-apply"
                || s == "paste";
 }
 
@@ -365,7 +365,7 @@ void DynamicMenuButton::updateTriggered()
                setEnabled(!bv->buffer().isReadonly()
                           && !m->isEmpty()
                           && inset->insetAllowed(FLEX_CODE));
-       } else if (menutype == "dynamic-freefonts") {
+       } else if (menutype == "textstyle-apply") {
                m->clear();
                vector<docstring> ffList = 
bv->cursor().innerText()->getFreeFonts();
                unsigned int i = 0;
diff --git a/src/frontends/qt4/GuiToolbar.h b/src/frontends/qt4/GuiToolbar.h
index 8d82f53..24d11e3 100644
--- a/src/frontends/qt4/GuiToolbar.h
+++ b/src/frontends/qt4/GuiToolbar.h
@@ -86,7 +86,7 @@ protected Q_SLOTS:
 /// (stdtoolbars.inc, usually) and must be one of:
 ///            dynamic-custom-insets
 ///            dynamic-char-styles
-///            dynamic-freefonts
+///            textstyle-apply
 ///            paste
 /// To add a new one of these, you must add a routine, like 
 /// loadFlexInsets, that will populate the menu, and call it from

Reply via email to