summaryrefslogtreecommitdiff
path: root/include/LibreOfficeKit/LibreOfficeKitGtk.h
diff options
context:
space:
mode:
authorPranav Kant <pranavk@gnome.org>2015-06-11 22:00:11 +0530
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-06-16 11:18:07 +0200
commit3061e486f9f9313c15cba6782edfaee96fe4f83d (patch)
tree248314f1c3cf4e15a9c53417cb6a606c62fdecd7 /include/LibreOfficeKit/LibreOfficeKitGtk.h
parente436f31147c7eb75908a8750b0e4053c2efdca5b (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. Change-Id: I10c34dad402d1ec586958b2db21ff44412c36cea
Diffstat (limited to 'include/LibreOfficeKit/LibreOfficeKitGtk.h')
-rw-r--r--include/LibreOfficeKit/LibreOfficeKitGtk.h17
1 files changed, 6 insertions, 11 deletions
diff --git a/include/LibreOfficeKit/LibreOfficeKitGtk.h b/include/LibreOfficeKit/LibreOfficeKitGtk.h
index bdd2e9ab90e3..7048dbefc0a1 100644
--- a/include/LibreOfficeKit/LibreOfficeKitGtk.h
+++ b/include/LibreOfficeKit/LibreOfficeKitGtk.h
@@ -25,23 +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);
};
GType lok_doc_view_get_type (void) G_GNUC_CONST;
@@ -78,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);