diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-13 11:50:49 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-13 11:50:49 +0000 |
commit | c853ffb5b2f75f5a889ed2e3ef89b818a736e87a (patch) | |
tree | 7d13a0883bb7936b84d6ecdd7bc332b41ed04bee /src/ui/desktop/menu-icon-shift.h | |
parent | Initial commit. (diff) | |
download | inkscape-c853ffb5b2f75f5a889ed2e3ef89b818a736e87a.tar.xz inkscape-c853ffb5b2f75f5a889ed2e3ef89b818a736e87a.zip |
Adding upstream version 1.3+ds.upstream/1.3+dsupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/ui/desktop/menu-icon-shift.h')
-rw-r--r-- | src/ui/desktop/menu-icon-shift.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/src/ui/desktop/menu-icon-shift.h b/src/ui/desktop/menu-icon-shift.h new file mode 100644 index 0000000..9b55f0d --- /dev/null +++ b/src/ui/desktop/menu-icon-shift.h @@ -0,0 +1,41 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +#ifndef SEEN_DESKTOP_MENU_ITEM_SHIFT_H +#define SEEN_DESKTOP_MENU_ITEM_SHIFT_H + +/** + * @file + * Shift Gtk::MenuItems with icons to align with Toggle and Radio buttons. + */ +/* + * Authors: + * Tavmjong Bah <tavmjong@free.fr> + * Patrick Storz <eduard.braun2@gmx.de> + * + * Copyright (C) 2020 Authors + * + * The contents of this file may be used under the GNU General Public License Version 2 or later. + * Read the file 'COPYING' for more information. + * + */ + +namespace Gtk { + class MenuShell; +} + +/** + * Call back to shift icons into place reserved for toggles (i.e. check and radio items). + */ +bool shift_icons(Gtk::MenuShell *menu); + +#endif // SEEN_DESKTOP_MENU_ITEM_SHIFT_H + +/* + Local Variables: + mode:c++ + c-file-style:"stroustrup" + c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +)) + indent-tabs-mode:nil + fill-column:99 + End: +*/ +// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 : |