summaryrefslogtreecommitdiffstats
path: root/src/ui/desktop/menu-icon-shift.h
blob: 78462a8eb41bc0da9cbb8983997a7a9af95ec6d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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       <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).
 */
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 :