~ubuntu-branches/ubuntu/oneiric/libinfinity/oneiric

« back to all changes in this revision

Viewing changes to libinftextgtk/inf-text-gtk-viewport.h

  • Committer: Bazaar Package Importer
  • Author(s): Philipp Kern
  • Date: 2011-04-03 15:50:33 UTC
  • mfrom: (1.2.4 upstream) (1.4.10 sid)
  • Revision ID: james.westby@ubuntu.com-20110403155033-eqntz262lxzt0d8s
Tags: 0.5.0-2
* Fix infinoted postinst and prerm.  (Closes: #620687)
* Updated debian/copyright.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* infinote - Collaborative notetaking application
 
2
 * Copyright (C) 2007-2010 Armin Burgmeier <armin@arbur.net>
 
3
 *
 
4
 * This library is free software; you can redistribute it and/or
 
5
 * modify it under the terms of the GNU Lesser General Public
 
6
 * License as published by the Free Software Foundation; either
 
7
 * version 2 of the License, or (at your option) any later version.
 
8
 *
 
9
 * This library is distributed in the hope that it will be useful,
 
10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
12
 * Lesser General Public License for more details.
 
13
 *
 
14
 * You should have received a copy of the GNU Lesser General Public
 
15
 * License along with this library; if not, write to the Free
 
16
 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
17
 */
 
18
 
 
19
#ifndef __INF_TEXT_GTK_VIEWPORT_H__
 
20
#define __INF_TEXT_GTK_VIEWPORT_H__
 
21
 
 
22
#include <libinftext/inf-text-user.h>
 
23
#include <libinfinity/common/inf-user-table.h>
 
24
 
 
25
#include <gtk/gtk.h>
 
26
#include <glib-object.h>
 
27
 
 
28
G_BEGIN_DECLS
 
29
 
 
30
#define INF_TEXT_GTK_TYPE_VIEWPORT                 (inf_text_gtk_viewport_get_type())
 
31
#define INF_TEXT_GTK_VIEWPORT(obj)                 (G_TYPE_CHECK_INSTANCE_CAST((obj), INF_TEXT_GTK_TYPE_VIEWPORT, InfTextGtkViewport))
 
32
#define INF_TEXT_GTK_VIEWPORT_CLASS(klass)         (G_TYPE_CHECK_CLASS_CAST((klass), INF_TEXT_GTK_TYPE_VIEWPORT, InfTextGtkViewportClass))
 
33
#define INF_TEXT_GTK_IS_VIEWPORT(obj)              (G_TYPE_CHECK_INSTANCE_TYPE((obj), INF_TEXT_GTK_TYPE_VIEWPORT))
 
34
#define INF_TEXT_GTK_IS_VIEWPORT_CLASS(klass)      (G_TYPE_CHECK_CLASS_TYPE((klass), INF_TEXT_GTK_TYPE_VIEWPORT))
 
35
#define INF_TEXT_GTK_VIEWPORT_GET_CLASS(obj)       (G_TYPE_INSTANCE_GET_CLASS((obj), INF_TEXT_GTK_TYPE_VIEWPORT, InfTextGtkViewportClass))
 
36
 
 
37
typedef struct _InfTextGtkViewport InfTextGtkViewport;
 
38
typedef struct _InfTextGtkViewportClass InfTextGtkViewportClass;
 
39
 
 
40
struct _InfTextGtkViewportClass {
 
41
  GObjectClass parent_class;
 
42
};
 
43
 
 
44
struct _InfTextGtkViewport {
 
45
  GObject parent;
 
46
};
 
47
 
 
48
GType
 
49
inf_text_gtk_viewport_get_type(void) G_GNUC_CONST;
 
50
 
 
51
InfTextGtkViewport*
 
52
inf_text_gtk_viewport_new(GtkScrolledWindow* scroll,
 
53
                          InfUserTable* user_table);
 
54
 
 
55
GtkScrolledWindow*
 
56
inf_text_gtk_viewport_get_scrolled_window(InfTextGtkViewport* viewport);
 
57
 
 
58
InfUserTable*
 
59
inf_text_gtk_viewport_get_user_table(InfTextGtkViewport* viewport);
 
60
 
 
61
void
 
62
inf_text_gtk_viewport_set_active_user(InfTextGtkViewport* viewport,
 
63
                                      InfTextUser* user);
 
64
 
 
65
InfTextUser*
 
66
inf_text_gtk_viewport_get_active_user(InfTextGtkViewport* viewport);
 
67
 
 
68
void
 
69
inf_text_gtk_viewport_set_show_user_markers(InfTextGtkViewport* viewport,
 
70
                                            gboolean show);
 
71
 
 
72
G_END_DECLS
 
73
 
 
74
#endif /* __INF_TEXT_GTK_VIEWPORT_H__ */
 
75
 
 
76
/* vim:set et sw=2 ts=2: */