fix .desktop file
[gconf-editor] / src / gedit-output-window.h
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /*
3  * gedit-output-window.h
4  * This file is part of gedit
5  *
6  * Copyright (C) 2002 Paolo Maggi 
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, write to the Free Software
20  * Foundation, Inc., 59 Temple Place, Suite 330, 
21  * Boston, MA 02111-1307, USA. 
22  * 
23  */
24  
25 /*
26  * Modified by the gedit Team, 2002. See the AUTHORS file for a 
27  * list of people on the gedit Team.  
28  * See the ChangeLog files for a list of changes. 
29  */
30
31 #ifndef __GEDIT_OUTPUT_WINDOW_H__
32 #define __GEDIT_OUTPUT_WINDOW_H__
33
34 #include <gtk/gtk.h>
35
36 #define GEDIT_TYPE_OUTPUT_WINDOW                (gedit_output_window_get_type ())
37 #define GEDIT_OUTPUT_WINDOW(obj)                (G_TYPE_CHECK_INSTANCE_CAST ((obj), GEDIT_TYPE_OUTPUT_WINDOW, GeditOutputWindow))
38 #define GEDIT_OUTPUT_WINDOW_CLASS(klass)        (G_TYPE_CHECK_CLASS_CAST ((klass), GEDIT_TYPE_OUTPUT_WINDOW, GeditOutputWindowClass))
39 #define GEDIT_IS_OUTPUT_WINDOW(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GEDIT_TYPE_OUTPUT_WINDOW))
40 #define GEDIT_IS_OUTPUT_WINDOW_CLASS(klass)     (G_TYPE_CHECK_CLASS_TYPE ((klass), GEDIT_TYPE_OUTPUT_WINDOW))
41 #define GEDIT_OUTPUT_WINDOW_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), GEDIT_TYPE_OUTPUT_WINDOW, GeditOutputWindowClass))
42
43
44 typedef struct _GeditOutputWindow               GeditOutputWindow;
45 typedef struct _GeditOutputWindowClass          GeditOutputWindowClass;
46
47 typedef struct _GeditOutputWindowPrivate        GeditOutputWindowPrivate;
48
49 struct _GeditOutputWindow
50 {
51         GtkHBox box;
52         
53         GeditOutputWindowPrivate *priv;
54 };
55
56 struct _GeditOutputWindowClass
57 {
58         GtkHBoxClass parent_class;
59
60         void (*close_requested) (GeditOutputWindow      *ow);
61         void (*selection_changed) (GeditOutputWindow    *ow, gchar *line);
62 };
63
64
65 GType            gedit_output_window_get_type           (void) G_GNUC_CONST;
66
67 GtkWidget       *gedit_output_window_new                (void);
68
69 void             gedit_output_window_clear              (GeditOutputWindow *ow);
70
71 void             gedit_output_window_append_line        (GeditOutputWindow *ow,
72                                                          const gchar *line,
73                                                          gboolean scroll);
74
75 void             gedit_output_window_prepend_line       (GeditOutputWindow *ow,
76                                                          const gchar *line,
77                                                          gboolean scroll);
78
79 void             gedit_output_window_set_select_multiple (GeditOutputWindow *ow,
80                                                           const GtkSelectionMode type);
81
82 #endif /* __GEDIT_OUTPUT_WINDOW_H__ */
83