2014-10-24 03:38:09 +00:00
|
|
|
/* GTK - The GIMP Toolkit
|
|
|
|
* Copyright © 2014 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_H__
|
|
|
|
#define __GTK_POPOVER_MENU_H__
|
|
|
|
|
|
|
|
#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
|
|
|
|
#error "Only <gtk/gtk.h> can be included directly."
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <gtk/gtkpopover.h>
|
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
#define GTK_TYPE_POPOVER_MENU (gtk_popover_menu_get_type ())
|
|
|
|
#define GTK_POPOVER_MENU(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GTK_TYPE_POPOVER_MENU, GtkPopoverMenu))
|
|
|
|
#define GTK_IS_POPOVER_MENU(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GTK_TYPE_POPOVER_MENU))
|
|
|
|
|
|
|
|
typedef struct _GtkPopoverMenu GtkPopoverMenu;
|
|
|
|
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2014-10-24 03:38:09 +00:00
|
|
|
GType gtk_popover_menu_get_type (void) G_GNUC_CONST;
|
|
|
|
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2019-06-07 17:05:48 +00:00
|
|
|
GtkWidget * gtk_popover_menu_new (GtkWidget *relative_to);
|
|
|
|
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
|
|
GtkWidget * gtk_popover_menu_new_from_model (GtkWidget *relative_to,
|
|
|
|
GMenuModel *model);
|
2014-10-24 03:38:09 +00:00
|
|
|
|
2019-03-27 21:52:51 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
|
|
void gtk_popover_menu_add_submenu (GtkPopoverMenu *popover,
|
2019-03-28 22:27:42 +00:00
|
|
|
GtkWidget *submenu,
|
2019-03-27 21:52:51 +00:00
|
|
|
const char *name);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2014-10-26 23:14:01 +00:00
|
|
|
void gtk_popover_menu_open_submenu (GtkPopoverMenu *popover,
|
2019-03-27 21:52:51 +00:00
|
|
|
const char *name);
|
2014-10-26 23:14:01 +00:00
|
|
|
|
|
|
|
|
2014-10-24 03:38:09 +00:00
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* __GTK_POPOVER_MENU_H__ */
|