2019-06-07 23:27:24 +00:00
|
|
|
/* GTK - The GIMP Toolkit
|
|
|
|
* Copyright (C) 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/>.
|
|
|
|
*/
|
|
|
|
|
2019-06-09 16:19:07 +00:00
|
|
|
#ifndef __GTK_POPOVER_MENU_BAR_H__
|
|
|
|
#define __GTK_POPOVER_MENU_BAR_H__
|
2019-06-07 23:27:24 +00:00
|
|
|
|
|
|
|
|
|
|
|
#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
|
|
|
|
|
|
|
|
|
2019-06-09 16:19:07 +00:00
|
|
|
#define GTK_TYPE_POPOVER_MENU_BAR (gtk_popover_menu_bar_get_type ())
|
|
|
|
#define GTK_POPOVER_MENU_BAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_POPOVER_MENU_BAR, GtkPopoverMenuBar))
|
|
|
|
#define GTK_IS_POPOVER_MENU_BAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_POPOVER_MENU_BAR))
|
2019-06-07 23:27:24 +00:00
|
|
|
|
2019-06-09 16:19:07 +00:00
|
|
|
typedef struct _GtkPopoverMenuBar GtkPopoverMenuBar;
|
2019-06-07 23:27:24 +00:00
|
|
|
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2019-06-09 16:19:07 +00:00
|
|
|
GType gtk_popover_menu_bar_get_type (void) G_GNUC_CONST;
|
2019-06-07 23:27:24 +00:00
|
|
|
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2019-06-09 16:19:07 +00:00
|
|
|
GtkWidget * gtk_popover_menu_bar_new_from_model (GMenuModel *model);
|
2019-06-09 16:04:12 +00:00
|
|
|
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2019-06-09 16:19:07 +00:00
|
|
|
void gtk_popover_menu_bar_set_menu_model (GtkPopoverMenuBar *bar,
|
|
|
|
GMenuModel *model);
|
2019-06-09 16:04:12 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2019-06-09 16:19:07 +00:00
|
|
|
GMenuModel * gtk_popover_menu_bar_get_menu_model (GtkPopoverMenuBar *bar);
|
2019-06-07 23:27:24 +00:00
|
|
|
|
2020-10-20 18:26:45 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
|
|
gboolean gtk_popover_menu_bar_add_child (GtkPopoverMenuBar *bar,
|
|
|
|
GtkWidget *child,
|
|
|
|
const char *id);
|
|
|
|
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
|
|
gboolean gtk_popover_menu_bar_remove_child (GtkPopoverMenuBar *bar,
|
|
|
|
GtkWidget *child);
|
2022-09-24 01:54:15 +00:00
|
|
|
|
|
|
|
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkPopoverMenuBar, g_object_unref)
|
|
|
|
|
2019-06-07 23:27:24 +00:00
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
|
2019-06-09 16:19:07 +00:00
|
|
|
#endif /* __GTK_POPOVER_MENU_BAR_H__ */
|