summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPranav Kant <pranavk@gnome.org>2015-06-11 22:00:11 +0530
committerAshod Nakashian <ashod.nakashian@collabora.co.uk>2016-02-07 21:03:16 -0500
commit5401c4f52cd9c2fdcd3012b7b5afa90a4ba734e0 (patch)
tree151cd8b68ffda27d501f2b01a4104bd9cd92c414 /include
parent00fa4510ca79752d8fb14c3c4579fc934113c722 (diff)
lokdocview: Restructure this GObject class
This is a big messy commit restructuring the whole class to follow most common practices followed by standard GObject classes, so that it can keep gobject-introspection happy; hence, allowing this widget to be used from other languages. (cherry picked from commit 3061e486f9f9313c15cba6782edfaee96fe4f83d) Change-Id: I10c34dad402d1ec586958b2db21ff44412c36cea
Diffstat (limited to 'include')
-rw-r--r--include/LibreOfficeKit/LibreOfficeKitGtk.h18
1 files changed, 6 insertions, 12 deletions
diff --git a/include/LibreOfficeKit/LibreOfficeKitGtk.h b/include/LibreOfficeKit/LibreOfficeKitGtk.h
index 1defd927c921..7048dbefc0a1 100644
--- a/include/LibreOfficeKit/LibreOfficeKitGtk.h
+++ b/include/LibreOfficeKit/LibreOfficeKitGtk.h
@@ -25,24 +25,19 @@ G_BEGIN_DECLS
#define LOK_IS_DOC_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), LOK_TYPE_DOC_VIEW))
#define LOK_DOC_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), LOK_TYPE_DOC_VIEW, LOKDocViewClass))
-
-typedef struct _LOKDocView LOKDocView;
-typedef struct _LOKDocViewClass LOKDocViewClass;
+typedef struct _LOKDocView LOKDocView;
+typedef struct _LOKDocViewClass LOKDocViewClass;
+typedef struct _LOKDocViewPrivate LOKDocViewPrivate;
struct _LOKDocView
{
GtkDrawingArea aDrawingArea;
- struct LOKDocView_Impl* m_pImpl;
+ LOKDocViewPrivate* priv;
};
struct _LOKDocViewClass
{
GtkDrawingAreaClass parent_class;
- void (* edit_changed) (LOKDocView* pView, gboolean was_edit);
- void (* command_changed) (LOKDocView* pView, char* new_state);
- void (* search_not_found) (LOKDocView* pView, char* new_state);
- void (* part_changed) (LOKDocView* pView, int new_part);
- void (* size_changed) (LOKDocView* pView);
};
GType lok_doc_view_get_type (void) G_GNUC_CONST;
@@ -79,9 +74,8 @@ void lok_doc_view_post_command (LOKDocView*
const char* pArguments);
/// Posts a keyboard event to LibreOfficeKit.
-void lok_doc_view_post_key (GtkWidget* pWidget,
- GdkEventKey* pEvent,
- gpointer pData);
+void lok_doc_view_post_key (LOKDocView* pDocView,
+ GdkEvent* pEvent);
float lok_doc_view_pixel_to_twip (LOKDocView* pDocView,
float fInput);