2 * macro_edit.h (c) 2005 Johannes Schmid
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation; either version 2 of the License, or
6 * (at your option) any later version.
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU Library General Public License for more details.
13 * You should have received a copy of the GNU General Public License
14 * along with this program; if not, write to the Free Software
15 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24 #define MACRO_EDIT_TYPE (macro_edit_get_type ())
25 #define MACRO_EDIT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), MACRO_EDIT_TYPE, MacroEdit))
26 #define MACRO_EDIT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), MACRO_EDIT_TYPE, MacroEditClass))
27 #define IS_MACRO_EDIT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MACRO_EDIT_TYPE))
28 #define IS_MACRO_EDIT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), MACRO_EDIT_TYPE))
31 typedef struct _MacroEdit MacroEdit
;
32 typedef struct _MacroEditClass MacroEditClass
;
45 GtkWidget
*cancel_button
;
46 GtkWidget
*name_entry
;
47 GtkWidget
*category_entry
;
48 GtkWidget
*shortcut_entry
;
54 GtkTreeSelection
*select
;
57 struct _MacroEditClass
63 GType
macro_edit_get_type (void);
64 GtkWidget
*macro_edit_new (gint type
, MacroDB
* db
);
66 void macro_edit_fill (MacroEdit
* edit
, GtkTreeSelection
* selection
);
67 void macro_edit_set_macro (MacroEdit
* edit
, const gchar
* macro
);