annotate pidgin/gtksourceundomanager.h @ 30771:0f66b49522c4

merge of '6156c597e7d5a7702b6915a78bef090253dd0090' and 'f88405b0b717173fb9fe55267ef7ae95fa07d29c'
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Sun, 08 Aug 2010 20:31:14 +0000
parents 28ed10da1165
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
17411
674d8bc2b980 Undo/Redo in GtkImHtml from GtkSourceView. This may not be adaquate enough for us.
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
674d8bc2b980 Undo/Redo in GtkImHtml from GtkSourceView. This may not be adaquate enough for us.
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
2 /*
674d8bc2b980 Undo/Redo in GtkImHtml from GtkSourceView. This may not be adaquate enough for us.
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
3 * gtksourceundomanager.h
674d8bc2b980 Undo/Redo in GtkImHtml from GtkSourceView. This may not be adaquate enough for us.
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
4 * This file is part of GtkSourceView
674d8bc2b980 Undo/Redo in GtkImHtml from GtkSourceView. This may not be adaquate enough for us.
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
5 *
674d8bc2b980 Undo/Redo in GtkImHtml from GtkSourceView. This may not be adaquate enough for us.
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
6 * Copyright (C) 1998, 1999 Alex Roberts, Evan Lawrence
25415
584063555949 Remove trailing whitespace
Mark Doliner <mark@kingant.net>
parents: 19680
diff changeset
7 * Copyright (C) 2000, 2001 Chema Celorio, Paolo Maggi
584063555949 Remove trailing whitespace
Mark Doliner <mark@kingant.net>
parents: 19680
diff changeset
8 * Copyright (C) 2002, 2003 Paolo Maggi
17411
674d8bc2b980 Undo/Redo in GtkImHtml from GtkSourceView. This may not be adaquate enough for us.
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
9 *
674d8bc2b980 Undo/Redo in GtkImHtml from GtkSourceView. This may not be adaquate enough for us.
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
10 * This program is free software; you can redistribute it and/or modify
674d8bc2b980 Undo/Redo in GtkImHtml from GtkSourceView. This may not be adaquate enough for us.
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
11 * it under the terms of the GNU General Public License as published by
674d8bc2b980 Undo/Redo in GtkImHtml from GtkSourceView. This may not be adaquate enough for us.
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
12 * the Free Software Foundation; either version 2 of the License, or
674d8bc2b980 Undo/Redo in GtkImHtml from GtkSourceView. This may not be adaquate enough for us.
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
13 * (at your option) any later version.
674d8bc2b980 Undo/Redo in GtkImHtml from GtkSourceView. This may not be adaquate enough for us.
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
14 *
674d8bc2b980 Undo/Redo in GtkImHtml from GtkSourceView. This may not be adaquate enough for us.
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
15 * This program is distributed in the hope that it will be useful,
674d8bc2b980 Undo/Redo in GtkImHtml from GtkSourceView. This may not be adaquate enough for us.
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
674d8bc2b980 Undo/Redo in GtkImHtml from GtkSourceView. This may not be adaquate enough for us.
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
674d8bc2b980 Undo/Redo in GtkImHtml from GtkSourceView. This may not be adaquate enough for us.
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
18 * GNU General Public License for more details.
674d8bc2b980 Undo/Redo in GtkImHtml from GtkSourceView. This may not be adaquate enough for us.
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
19 *
674d8bc2b980 Undo/Redo in GtkImHtml from GtkSourceView. This may not be adaquate enough for us.
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
20 * You should have received a copy of the GNU General Public License
674d8bc2b980 Undo/Redo in GtkImHtml from GtkSourceView. This may not be adaquate enough for us.
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
21 * along with this program; if not, write to the Free Software
25415
584063555949 Remove trailing whitespace
Mark Doliner <mark@kingant.net>
parents: 19680
diff changeset
22 * Foundation, Inc., 51 Franklin Street, Fifth Floor,
19680
44b4e8bd759b The FSF changed its address a while ago; our files were out of date.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 17411
diff changeset
23 * Boston, MA 02111-1301, USA. * *
17411
674d8bc2b980 Undo/Redo in GtkImHtml from GtkSourceView. This may not be adaquate enough for us.
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
24 */
25415
584063555949 Remove trailing whitespace
Mark Doliner <mark@kingant.net>
parents: 19680
diff changeset
25
17411
674d8bc2b980 Undo/Redo in GtkImHtml from GtkSourceView. This may not be adaquate enough for us.
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
26 #ifndef __GTK_SOURCE_UNDO_MANAGER_H__
674d8bc2b980 Undo/Redo in GtkImHtml from GtkSourceView. This may not be adaquate enough for us.
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
27 #define __GTK_SOURCE_UNDO_MANAGER_H__
674d8bc2b980 Undo/Redo in GtkImHtml from GtkSourceView. This may not be adaquate enough for us.
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
28
26588
1a94a964bddf More updates for GTK+ 3.0. This only fixes the single-includes. Fixing all
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 25415
diff changeset
29 #include <gtk/gtk.h>
17411
674d8bc2b980 Undo/Redo in GtkImHtml from GtkSourceView. This may not be adaquate enough for us.
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
30
26703
28ed10da1165 Remove GTK_CHECK_* macros which were deprecated.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 26588
diff changeset
31 #define GTK_SOURCE_TYPE_UNDO_MANAGER (gtk_source_undo_manager_get_type())
28ed10da1165 Remove GTK_CHECK_* macros which were deprecated.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 26588
diff changeset
32 #define GTK_SOURCE_UNDO_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GTK_SOURCE_TYPE_UNDO_MANAGER, GtkSourceUndoManager))
28ed10da1165 Remove GTK_CHECK_* macros which were deprecated.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 26588
diff changeset
33 #define GTK_SOURCE_UNDO_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GTK_SOURCE_TYPE_UNDO_MANAGER, GtkSourceUndoManagerClass))
28ed10da1165 Remove GTK_CHECK_* macros which were deprecated.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 26588
diff changeset
34 #define GTK_SOURCE_IS_UNDO_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GTK_SOURCE_TYPE_UNDO_MANAGER))
28ed10da1165 Remove GTK_CHECK_* macros which were deprecated.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 26588
diff changeset
35 #define GTK_SOURCE_IS_UNDO_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), GTK_SOURCE_TYPE_UNDO_MANAGER))
28ed10da1165 Remove GTK_CHECK_* macros which were deprecated.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 26588
diff changeset
36 #define GTK_SOURCE_UNDO_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GTK_SOURCE_TYPE_UNDO_MANAGER, GtkSourceUndoManagerClass))
17411
674d8bc2b980 Undo/Redo in GtkImHtml from GtkSourceView. This may not be adaquate enough for us.
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
37
674d8bc2b980 Undo/Redo in GtkImHtml from GtkSourceView. This may not be adaquate enough for us.
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
38
674d8bc2b980 Undo/Redo in GtkImHtml from GtkSourceView. This may not be adaquate enough for us.
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
39 typedef struct _GtkSourceUndoManager GtkSourceUndoManager;
674d8bc2b980 Undo/Redo in GtkImHtml from GtkSourceView. This may not be adaquate enough for us.
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
40 typedef struct _GtkSourceUndoManagerClass GtkSourceUndoManagerClass;
674d8bc2b980 Undo/Redo in GtkImHtml from GtkSourceView. This may not be adaquate enough for us.
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
41
674d8bc2b980 Undo/Redo in GtkImHtml from GtkSourceView. This may not be adaquate enough for us.
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
42 typedef struct _GtkSourceUndoManagerPrivate GtkSourceUndoManagerPrivate;
674d8bc2b980 Undo/Redo in GtkImHtml from GtkSourceView. This may not be adaquate enough for us.
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
43
674d8bc2b980 Undo/Redo in GtkImHtml from GtkSourceView. This may not be adaquate enough for us.
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
44 struct _GtkSourceUndoManager
674d8bc2b980 Undo/Redo in GtkImHtml from GtkSourceView. This may not be adaquate enough for us.
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
45 {
674d8bc2b980 Undo/Redo in GtkImHtml from GtkSourceView. This may not be adaquate enough for us.
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
46 GObject base;
25415
584063555949 Remove trailing whitespace
Mark Doliner <mark@kingant.net>
parents: 19680
diff changeset
47
17411
674d8bc2b980 Undo/Redo in GtkImHtml from GtkSourceView. This may not be adaquate enough for us.
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
48 GtkSourceUndoManagerPrivate *priv;
674d8bc2b980 Undo/Redo in GtkImHtml from GtkSourceView. This may not be adaquate enough for us.
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
49 };
674d8bc2b980 Undo/Redo in GtkImHtml from GtkSourceView. This may not be adaquate enough for us.
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
50
674d8bc2b980 Undo/Redo in GtkImHtml from GtkSourceView. This may not be adaquate enough for us.
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
51 struct _GtkSourceUndoManagerClass
674d8bc2b980 Undo/Redo in GtkImHtml from GtkSourceView. This may not be adaquate enough for us.
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
52 {
674d8bc2b980 Undo/Redo in GtkImHtml from GtkSourceView. This may not be adaquate enough for us.
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
53 GObjectClass parent_class;
674d8bc2b980 Undo/Redo in GtkImHtml from GtkSourceView. This may not be adaquate enough for us.
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
54
674d8bc2b980 Undo/Redo in GtkImHtml from GtkSourceView. This may not be adaquate enough for us.
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
55 /* Signals */
674d8bc2b980 Undo/Redo in GtkImHtml from GtkSourceView. This may not be adaquate enough for us.
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
56 void (*can_undo) (GtkSourceUndoManager *um, gboolean can_undo);
674d8bc2b980 Undo/Redo in GtkImHtml from GtkSourceView. This may not be adaquate enough for us.
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
57 void (*can_redo) (GtkSourceUndoManager *um, gboolean can_redo);
674d8bc2b980 Undo/Redo in GtkImHtml from GtkSourceView. This may not be adaquate enough for us.
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
58 };
674d8bc2b980 Undo/Redo in GtkImHtml from GtkSourceView. This may not be adaquate enough for us.
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
59
674d8bc2b980 Undo/Redo in GtkImHtml from GtkSourceView. This may not be adaquate enough for us.
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
60 GType gtk_source_undo_manager_get_type (void) G_GNUC_CONST;
674d8bc2b980 Undo/Redo in GtkImHtml from GtkSourceView. This may not be adaquate enough for us.
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
61
674d8bc2b980 Undo/Redo in GtkImHtml from GtkSourceView. This may not be adaquate enough for us.
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
62 GtkSourceUndoManager* gtk_source_undo_manager_new (GtkTextBuffer *buffer);
674d8bc2b980 Undo/Redo in GtkImHtml from GtkSourceView. This may not be adaquate enough for us.
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
63
674d8bc2b980 Undo/Redo in GtkImHtml from GtkSourceView. This may not be adaquate enough for us.
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
64 gboolean gtk_source_undo_manager_can_undo (const GtkSourceUndoManager *um);
674d8bc2b980 Undo/Redo in GtkImHtml from GtkSourceView. This may not be adaquate enough for us.
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
65 gboolean gtk_source_undo_manager_can_redo (const GtkSourceUndoManager *um);
674d8bc2b980 Undo/Redo in GtkImHtml from GtkSourceView. This may not be adaquate enough for us.
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
66
674d8bc2b980 Undo/Redo in GtkImHtml from GtkSourceView. This may not be adaquate enough for us.
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
67 void gtk_source_undo_manager_undo (GtkSourceUndoManager *um);
674d8bc2b980 Undo/Redo in GtkImHtml from GtkSourceView. This may not be adaquate enough for us.
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
68 void gtk_source_undo_manager_redo (GtkSourceUndoManager *um);
674d8bc2b980 Undo/Redo in GtkImHtml from GtkSourceView. This may not be adaquate enough for us.
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
69
25415
584063555949 Remove trailing whitespace
Mark Doliner <mark@kingant.net>
parents: 19680
diff changeset
70 void gtk_source_undo_manager_begin_not_undoable_action
17411
674d8bc2b980 Undo/Redo in GtkImHtml from GtkSourceView. This may not be adaquate enough for us.
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
71 (GtkSourceUndoManager *um);
25415
584063555949 Remove trailing whitespace
Mark Doliner <mark@kingant.net>
parents: 19680
diff changeset
72 void gtk_source_undo_manager_end_not_undoable_action
17411
674d8bc2b980 Undo/Redo in GtkImHtml from GtkSourceView. This may not be adaquate enough for us.
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
73 (GtkSourceUndoManager *um);
674d8bc2b980 Undo/Redo in GtkImHtml from GtkSourceView. This may not be adaquate enough for us.
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
74
25415
584063555949 Remove trailing whitespace
Mark Doliner <mark@kingant.net>
parents: 19680
diff changeset
75 gint gtk_source_undo_manager_get_max_undo_levels
17411
674d8bc2b980 Undo/Redo in GtkImHtml from GtkSourceView. This may not be adaquate enough for us.
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
76 (GtkSourceUndoManager *um);
25415
584063555949 Remove trailing whitespace
Mark Doliner <mark@kingant.net>
parents: 19680
diff changeset
77 void gtk_source_undo_manager_set_max_undo_levels
17411
674d8bc2b980 Undo/Redo in GtkImHtml from GtkSourceView. This may not be adaquate enough for us.
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
78 (GtkSourceUndoManager *um,
674d8bc2b980 Undo/Redo in GtkImHtml from GtkSourceView. This may not be adaquate enough for us.
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
79 gint undo_levels);
674d8bc2b980 Undo/Redo in GtkImHtml from GtkSourceView. This may not be adaquate enough for us.
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
80
674d8bc2b980 Undo/Redo in GtkImHtml from GtkSourceView. This may not be adaquate enough for us.
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
81 #endif /* __GTK_SOURCE_UNDO_MANAGER_H__ */
674d8bc2b980 Undo/Redo in GtkImHtml from GtkSourceView. This may not be adaquate enough for us.
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
82
674d8bc2b980 Undo/Redo in GtkImHtml from GtkSourceView. This may not be adaquate enough for us.
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
83