| 1 | /* gtkshortcutswindow.h |
| 2 | * |
| 3 | * Copyright (C) 2015 Christian Hergert <christian@hergert.me> |
| 4 | * |
| 5 | * This library is free software; you can redistribute it and/or |
| 6 | * modify it under the terms of the GNU Library General Public License as |
| 7 | * published by the Free Software Foundation; either version 2 of the |
| 8 | * License, or (at your option) any later version. |
| 9 | * |
| 10 | * This library is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 | * Library General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU Library General Public |
| 16 | * License along with this library. If not, see <http://www.gnu.org/licenses/>. |
| 17 | */ |
| 18 | |
| 19 | #ifndef __GTK_SHORTCUTS_WINDOW_H__ |
| 20 | #define __GTK_SHORTCUTS_WINDOW_H__ |
| 21 | |
| 22 | #include <gtk/gtkwindow.h> |
| 23 | |
| 24 | G_BEGIN_DECLS |
| 25 | |
| 26 | #define GTK_TYPE_SHORTCUTS_WINDOW (gtk_shortcuts_window_get_type ()) |
| 27 | #define GTK_SHORTCUTS_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_SHORTCUTS_WINDOW, GtkShortcutsWindow)) |
| 28 | #define GTK_SHORTCUTS_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_SHORTCUTS_WINDOW, GtkShortcutsWindowClass)) |
| 29 | #define GTK_IS_SHORTCUTS_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_SHORTCUTS_WINDOW)) |
| 30 | #define GTK_IS_SHORTCUTS_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_SHORTCUTS_WINDOW)) |
| 31 | #define GTK_SHORTCUTS_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_SHORTCUTS_WINDOW, GtkShortcutsWindowClass)) |
| 32 | |
| 33 | |
| 34 | typedef struct _GtkShortcutsWindow GtkShortcutsWindow; |
| 35 | typedef struct _GtkShortcutsWindowClass GtkShortcutsWindowClass; |
| 36 | |
| 37 | |
| 38 | struct _GtkShortcutsWindow |
| 39 | { |
| 40 | GtkWindow window; |
| 41 | }; |
| 42 | |
| 43 | struct _GtkShortcutsWindowClass |
| 44 | { |
| 45 | GtkWindowClass parent_class; |
| 46 | |
| 47 | void (*close) (GtkShortcutsWindow *self); |
| 48 | void (*search) (GtkShortcutsWindow *self); |
| 49 | }; |
| 50 | |
| 51 | GDK_AVAILABLE_IN_3_20 |
| 52 | GType gtk_shortcuts_window_get_type (void) G_GNUC_CONST; |
| 53 | |
| 54 | G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkShortcutsWindow, g_object_unref) |
| 55 | |
| 56 | G_END_DECLS |
| 57 | |
| 58 | #endif /* GTK_SHORTCUTS_WINDOW _H */ |
| 59 | |