diff options
author | Matthias Clasen <mclasen@redhat.com> | 2019-06-13 00:13:21 +0000 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2019-06-12 21:50:46 -0400 |
commit | cbc0a8447d12aee306d2c2e56a53527384142240 (patch) | |
tree | 806e3e9ae13c4c2178055f063b373477afc2fb44 /gtk/gtkpopovermenuprivate.h | |
parent | a7e121384cf2b5ee470ccade9defdf27273b1797 (diff) | |
download | gtk+-cbc0a8447d12aee306d2c2e56a53527384142240.tar.gz |
popover menu: Unify hover and focus
Menus traditionally don't have separate
hover and focus locations. Make the same
change here that we already did for
popover menubars: Track the active item
and set its selected state. Both keynav
and mouse change the active item.
Diffstat (limited to 'gtk/gtkpopovermenuprivate.h')
-rw-r--r-- | gtk/gtkpopovermenuprivate.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/gtk/gtkpopovermenuprivate.h b/gtk/gtkpopovermenuprivate.h new file mode 100644 index 0000000000..024d20c91c --- /dev/null +++ b/gtk/gtkpopovermenuprivate.h @@ -0,0 +1,30 @@ +/* GTK - The GIMP Toolkit + * Copyright © 2019 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see <http://www.gnu.org/licenses/>. + */ + +#ifndef __GTK_POPOVER_MENU_PRIVATE_H__ +#define __GTK_POPOVER_MENU_PRIVATE_H__ + +#include "gtkpopovermenu.h" + +G_BEGIN_DECLS + +void gtk_popover_menu_set_active_item (GtkPopoverMenu *popover, + GtkWidget *item); + +G_END_DECLS + +#endif /* __GTK_POPOVER_PRIVATE_H__ */ |