From cca66b9ec4e494c1d919bff0f71a820d8afab1fa Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 20:24:48 +0200 Subject: Adding upstream version 1.2.2. Signed-off-by: Daniel Baumann --- src/ui/desktop/menu-icon-shift.h | 46 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 src/ui/desktop/menu-icon-shift.h (limited to 'src/ui/desktop/menu-icon-shift.h') diff --git a/src/ui/desktop/menu-icon-shift.h b/src/ui/desktop/menu-icon-shift.h new file mode 100644 index 0000000..78462a8 --- /dev/null +++ b/src/ui/desktop/menu-icon-shift.h @@ -0,0 +1,46 @@ +// 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 + * Patrick Storz + * + * 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). + */ +void shift_icons(Gtk::MenuShell *menu); + +/** + * Add callbacks recursively to menus. + */ +void shift_icons_recursive(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 : -- cgit v1.2.3