~ubuntu-branches/ubuntu/gutsy/geany/gutsy-backports

« back to all changes in this revision

Viewing changes to src/msgwindow.h

  • Committer: Bazaar Package Importer
  • Author(s): Gauvain Pocentek
  • Date: 2006-12-24 09:54:32 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20061224095432-veqvs2l6tswh3c7b
Tags: 0.10-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 *      along with this program; if not, write to the Free Software
18
18
 *      Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19
19
 *
20
 
 * $Id: msgwindow.h 802 2006-09-08 13:39:32Z ntrel $
 
20
 * $Id: msgwindow.h 1090 2006-12-13 16:41:25Z ntrel $
21
21
 */
22
22
 
23
23
 
35
35
 
36
36
enum
37
37
{
38
 
        MSG_STATUS = 0,
 
38
        MSG_STATUS = 0, // force it to start at 0 to keep in sync with the notebook page numbers
39
39
        MSG_COMPILER,
40
40
        MSG_MESSAGE,
41
41
        MSG_SCRATCH,
42
 
        MSG_VTE
 
42
        MSG_VTE,
43
43
};
44
44
 
45
45
 
 
46
 
46
47
typedef struct
47
48
{
48
49
        GtkListStore    *store_status;
65
66
 
66
67
void msgwin_finalize();
67
68
 
68
 
void msgwin_prepare_msg_tree_view(void);
69
 
 
70
 
void msgwin_prepare_status_tree_view(void);
71
 
 
72
 
void msgwin_prepare_compiler_tree_view(void);
73
 
 
74
 
void msgwin_show();
75
 
 
76
 
void msgwin_msg_add(gint line, gint idx, gchar *string);
77
 
 
78
 
void msgwin_compiler_add(gint msg_color, gboolean scroll, gchar const *format, ...);
79
 
 
80
 
void msgwin_status_add(gchar const *format, ...);
81
 
 
82
 
void msgwin_set_build_info(const gchar *dir, guint file_type_id);
83
 
 
84
 
GtkWidget *msgwin_create_message_popup_menu(gint type);
 
69
void msgwin_show_hide(gboolean show);
 
70
 
 
71
void msgwin_msg_add(gint line, gint idx, const gchar *string);
 
72
 
 
73
void msgwin_compiler_add(gint msg_color, const gchar *format, ...)
 
74
                G_GNUC_PRINTF (2, 3);
 
75
 
 
76
void msgwin_status_add(const gchar *format, ...) G_GNUC_PRINTF (1, 2);
 
77
 
 
78
void msgwin_menu_add_common_items(GtkMenu *menu);
85
79
 
86
80
gboolean msgwin_goto_compiler_file_line();
87
81
 
88
 
/* try to parse the file and line number where the error occured described in line
89
 
 * and when something useful is found, it stores the line number in *line and the
90
 
 * relevant file with the error in filename.
91
 
 * *line will be -1 if no error was found in string.
92
 
 * filename must be freed unless it is NULL. */
93
82
void msgwin_parse_compiler_error_line(const gchar *string, gchar **filename, gint *line);
94
83
 
95
84
gboolean msgwin_goto_messages_file_line();