Fix a Gtk warning when checking path input in the log viewer.
[anjuta-git-plugin.git] / plugins / macro / macro-edit.h
blob07f3e915a82b3036ba37f11002d16a52274fc874
1 /*
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.
7 *
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.
18 #ifndef MACRO_EDIT_H
19 #define MACRO_EDIT_H
21 #include "plugin.h"
22 #include "macro-db.h"
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;
34 enum
36 MACRO_ADD,
37 MACRO_EDIT
40 struct _MacroEdit
42 GtkDialog dialog;
44 GtkWidget *ok_button;
45 GtkWidget *cancel_button;
46 GtkWidget *name_entry;
47 GtkWidget *category_entry;
48 GtkWidget *shortcut_entry;
49 GtkWidget *text;
51 MacroDB *macro_db;
52 GladeXML *gxml;
53 gint type;
54 GtkTreeSelection *select;
57 struct _MacroEditClass
59 GtkDialogClass klass;
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);
68 #endif