1 /* dzl-shortcut-simple-label.h 2 * 3 * Copyright (C) 2017 Christian Hergert <chergert@redhat.com> 4 * 5 * This program is free software: you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation, either version 3 of the License, or 8 * (at your option) any later version. 9 * 10 * This program 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 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with this program. If not, see <http://www.gnu.org/licenses/>. 17 */ 18 19 #ifndef DZL_SHORTCUT_SIMPLE_LABEL_H 20 #define DZL_SHORTCUT_SIMPLE_LABEL_H 21 22 #include <gtk/gtk.h> 23 24 #include "dzl-version-macros.h" 25 26 G_BEGIN_DECLS 27 28 #define DZL_TYPE_SHORTCUT_SIMPLE_LABEL (dzl_shortcut_simple_label_get_type()) 29 30 DZL_AVAILABLE_IN_ALL 31 G_DECLARE_FINAL_TYPE (DzlShortcutSimpleLabel, dzl_shortcut_simple_label, DZL, SHORTCUT_SIMPLE_LABEL, GtkBox) 32 33 DZL_AVAILABLE_IN_ALL 34 GtkWidget *dzl_shortcut_simple_label_new (void); 35 DZL_AVAILABLE_IN_ALL 36 const gchar *dzl_shortcut_simple_label_get_accel (DzlShortcutSimpleLabel *self); 37 DZL_AVAILABLE_IN_ALL 38 void dzl_shortcut_simple_label_set_accel (DzlShortcutSimpleLabel *self, 39 const gchar *accel); 40 DZL_AVAILABLE_IN_ALL 41 const gchar *dzl_shortcut_simple_label_get_action (DzlShortcutSimpleLabel *self); 42 DZL_AVAILABLE_IN_ALL 43 void dzl_shortcut_simple_label_set_action (DzlShortcutSimpleLabel *self, 44 const gchar *action); 45 DZL_AVAILABLE_IN_ALL 46 const gchar *dzl_shortcut_simple_label_get_command (DzlShortcutSimpleLabel *self); 47 DZL_AVAILABLE_IN_ALL 48 void dzl_shortcut_simple_label_set_command (DzlShortcutSimpleLabel *self, 49 const gchar *command); 50 DZL_AVAILABLE_IN_ALL 51 const gchar *dzl_shortcut_simple_label_get_title (DzlShortcutSimpleLabel *self); 52 DZL_AVAILABLE_IN_ALL 53 void dzl_shortcut_simple_label_set_title (DzlShortcutSimpleLabel *self, 54 const gchar *title); 55 56 G_END_DECLS 57 58 #endif /* DZL_SHORTCUT_SIMPLE_LABEL_H */ 59