Fix a Gtk warning when checking path input in the log viewer.
[anjuta-git-plugin.git] / plugins / patch / plugin.h
blobc0c1f5dfb2a31b940798aafce6e7c0db30a986a7
1 /* plugin.h (C) 2005 Massimo Cora'
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.
18 #ifndef _PATCH_PLUGIN_H_
19 #define _PATCH_PLUGIN_H_
21 #include <config.h>
22 #include <libanjuta/anjuta-plugin.h>
23 #include <libanjuta/anjuta-launcher.h>
24 #include <libanjuta/interfaces/ianjuta-message-manager.h>
26 #define ICON_FILE "anjuta-patch-plugin.png"
28 extern GType patch_plugin_get_type (GTypeModule *module);
29 #define ANJUTA_TYPE_PLUGIN_PATCH (patch_plugin_get_type (NULL))
30 #define ANJUTA_PLUGIN_PATCH(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), ANJUTA_TYPE_PLUGIN_PATCH, PatchPlugin))
31 #define ANJUTA_PLUGIN_PATCH_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), ANJUTA_TYPE_PLUGIN_PATCH, PatchPluginClass))
32 #define ANJUTA_IS_PLUGIN_PATCH(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), ANJUTA_TYPE_PLUGIN_PATCH))
33 #define ANJUTA_IS_PLUGIN_PATCH_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), ANJUTA_TYPE_PLUGIN_PATCH))
34 #define ANJUTA_PLUGIN_PATCH_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), ANJUTA_TYPE_PLUGIN_PATCH, PatchPluginClass))
36 typedef struct _PatchPlugin PatchPlugin;
37 typedef struct _PatchPluginClass PatchPluginClass;
40 struct _PatchPlugin {
41 AnjutaPlugin parent;
42 AnjutaLauncher *launcher;
44 IAnjutaMessageView* mesg_view;
45 GtkWidget* file_chooser;
46 GtkWidget* patch_chooser;
47 GtkWidget* dialog;
48 GtkWidget* output_label;
49 GtkWidget* patch_button;
50 GtkWidget* cancel_button;
51 GtkWidget* dry_run_check;
52 GladeXML* gxml;
55 gboolean executing;
56 gint uiid;
59 struct _PatchPluginClass {
60 AnjutaPluginClass parent_class;
64 #endif /* _PATCH_PLUGIN_H_ */