Set up current working directory on File->Open
[gscope.git] / sourceview.h
blobc2c13a8fd0aa5aec3a3b3cb15cd09d0d0268f1cb
1 /*
2 * (c) 2010 Cyrill Gorcunov, gorcunov@gmail.com
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or (at
7 * your option) any later version.
9 * This program is distributed in the hope that it will be useful, but
10 * WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * General Public License for more details.
14 * You should have received a copy of the GNU General Public License along
15 * with this program; if not, write to the Free Software Foundation, Inc.,
16 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
20 #ifndef SOURCEVIEW_H
21 #define SOURCEVIEW_H
23 #include "list.h"
25 struct source_view {
26 GtkWidget *me; /* master widget we are embedded into */
28 GtkWidget *text_widget;
29 GtkTextBuffer *text_buffer;
30 char *text_contents;
31 GtkTextIter text_iter_start,
32 text_iter_end;
34 struct list_head *etags;
35 GtkWidget *etags_tree_widget;
36 GtkListStore *etags_store;
38 char *file_path;
39 char *file_name;
40 void *private;
42 void (*delete_hook)(GtkWidget *child, void *private);
45 struct source_view *source_view_create(char *path);
46 void source_view_scroll_to_line(struct source_view *sv, unsigned long line);
48 #endif /* SOURCEVIEW_H */