aboutsummaryrefslogtreecommitdiff
path: root/libqmenumodel
diff options
context:
space:
mode:
authorOlivier Tilloy <olivier.tilloy@canonical.com>2012-10-11 10:54:49 +0200
committerOlivier Tilloy <olivier.tilloy@canonical.com>2012-10-11 10:54:49 +0200
commit6504ccc25f02b73649c53e22194ebf2d2319e4e5 (patch)
tree58b25e63a33cc204a30bbc4987b2ea3610023c95 /libqmenumodel
parenta3c6400a93152d5cf4dc63f9c90955f6245ceacd (diff)
parent24faac7a03ce0769ed155bfc71be31f750c86dfb (diff)
downloadqmenumodel-6504ccc25f02b73649c53e22194ebf2d2319e4e5.tar.gz
qmenumodel-6504ccc25f02b73649c53e22194ebf2d2319e4e5.tar.bz2
qmenumodel-6504ccc25f02b73649c53e22194ebf2d2319e4e5.zip
Merge the latest changes from trunk.
Diffstat (limited to 'libqmenumodel')
-rw-r--r--libqmenumodel/src/qdbusactiongroup.cpp1
-rw-r--r--libqmenumodel/src/qdbusactiongroup.h6
-rw-r--r--libqmenumodel/src/qdbusmenumodel.cpp4
-rw-r--r--libqmenumodel/src/qdbusmenumodel.h4
-rw-r--r--libqmenumodel/src/qdbusobject.cpp1
-rw-r--r--libqmenumodel/src/qdbusobject.h9
-rw-r--r--libqmenumodel/src/qmenumodel.cpp4
-rw-r--r--libqmenumodel/src/qmenumodel.h7
8 files changed, 25 insertions, 11 deletions
diff --git a/libqmenumodel/src/qdbusactiongroup.cpp b/libqmenumodel/src/qdbusactiongroup.cpp
index fc5b18e..0c1367a 100644
--- a/libqmenumodel/src/qdbusactiongroup.cpp
+++ b/libqmenumodel/src/qdbusactiongroup.cpp
@@ -22,6 +22,7 @@
#include "converter.h"
extern "C" {
+#include <glib.h>
#include <gio/gio.h>
}
diff --git a/libqmenumodel/src/qdbusactiongroup.h b/libqmenumodel/src/qdbusactiongroup.h
index 518f78c..beaca24 100644
--- a/libqmenumodel/src/qdbusactiongroup.h
+++ b/libqmenumodel/src/qdbusactiongroup.h
@@ -27,6 +27,12 @@
class QStateAction;
+typedef char gchar;
+typedef void* gpointer;
+typedef struct _GVariant GVariant;
+typedef struct _GActionGroup GActionGroup;
+typedef struct _GDBusActionGroup GDBusActionGroup;
+
class QDBusActionGroup : public QObject, public QDBusObject
{
Q_OBJECT
diff --git a/libqmenumodel/src/qdbusmenumodel.cpp b/libqmenumodel/src/qdbusmenumodel.cpp
index ae88c35..f3da989 100644
--- a/libqmenumodel/src/qdbusmenumodel.cpp
+++ b/libqmenumodel/src/qdbusmenumodel.cpp
@@ -17,6 +17,10 @@
* Renato Araujo Oliveira Filho <renato@canonical.com>
*/
+extern "C" {
+#include <gio/gio.h>
+}
+
#include "qdbusmenumodel.h"
/*!
diff --git a/libqmenumodel/src/qdbusmenumodel.h b/libqmenumodel/src/qdbusmenumodel.h
index 767451a..6943613 100644
--- a/libqmenumodel/src/qdbusmenumodel.h
+++ b/libqmenumodel/src/qdbusmenumodel.h
@@ -23,10 +23,6 @@
#include "qdbusobject.h"
#include "qmenumodel.h"
-extern "C" {
-#include <gio/gio.h>
-}
-
class QDBusMenuModel : public QMenuModel, public QDBusObject
{
Q_OBJECT
diff --git a/libqmenumodel/src/qdbusobject.cpp b/libqmenumodel/src/qdbusobject.cpp
index ecb8ee9..5a5a14b 100644
--- a/libqmenumodel/src/qdbusobject.cpp
+++ b/libqmenumodel/src/qdbusobject.cpp
@@ -19,6 +19,7 @@
extern "C" {
#include <glib-object.h>
+#include <gio/gio.h>
}
#include "qdbusobject.h"
diff --git a/libqmenumodel/src/qdbusobject.h b/libqmenumodel/src/qdbusobject.h
index ef2b42f..324d3fd 100644
--- a/libqmenumodel/src/qdbusobject.h
+++ b/libqmenumodel/src/qdbusobject.h
@@ -20,14 +20,15 @@
#ifndef QDBUSOBJECT_H
#define QDBUSOBJECT_H
-extern "C" {
-#include <gio/gio.h>
-}
-
#include <QString>
#include "dbus-enums.h"
+typedef unsigned int guint;
+typedef char gchar;
+typedef void* gpointer;
+typedef struct _GDBusConnection GDBusConnection;
+
class QDBusObject
{
public:
diff --git a/libqmenumodel/src/qmenumodel.cpp b/libqmenumodel/src/qmenumodel.cpp
index 4c0fc23..1aaf210 100644
--- a/libqmenumodel/src/qmenumodel.cpp
+++ b/libqmenumodel/src/qmenumodel.cpp
@@ -17,6 +17,10 @@
* Renato Araujo Oliveira Filho <renato@canonical.com>
*/
+extern "C" {
+#include <gio/gio.h>
+}
+
#include "qmenumodel.h"
#include "converter.h"
diff --git a/libqmenumodel/src/qmenumodel.h b/libqmenumodel/src/qmenumodel.h
index 7520480..b5c76c0 100644
--- a/libqmenumodel/src/qmenumodel.h
+++ b/libqmenumodel/src/qmenumodel.h
@@ -22,9 +22,10 @@
#include <QAbstractListModel>
-extern "C" {
-#include <gio/gio.h>
-}
+typedef int gint;
+typedef unsigned int guint;
+typedef void* gpointer;
+typedef struct _GMenuModel GMenuModel;
class QMenuModel : public QAbstractListModel
{