diff options
author | Robert Ancell <robert.ancell@canonical.com> | 2013-01-17 17:51:41 -0800 |
---|---|---|
committer | Robert Ancell <robert.ancell@canonical.com> | 2013-01-17 17:51:41 -0800 |
commit | 6f4448950dff8ac368b42199240435bceded99db (patch) | |
tree | d4aa09732fb20fe8666185843c7bbb0489593d3d /liblightdm-qt | |
parent | 129cbf6127f58c77e1afc453ae56036ac958f2aa (diff) | |
download | lightdm-git-6f4448950dff8ac368b42199240435bceded99db.tar.gz |
Stop deprecation warnings from glib >= 2.36
Diffstat (limited to 'liblightdm-qt')
-rw-r--r-- | liblightdm-qt/greeter.cpp | 2 | ||||
-rw-r--r-- | liblightdm-qt/sessionsmodel.cpp | 2 | ||||
-rw-r--r-- | liblightdm-qt/usersmodel.cpp | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/liblightdm-qt/greeter.cpp b/liblightdm-qt/greeter.cpp index 717f5c2d..93152568 100644 --- a/liblightdm-qt/greeter.cpp +++ b/liblightdm-qt/greeter.cpp @@ -42,7 +42,9 @@ private: GreeterPrivate::GreeterPrivate(Greeter *parent) : q_ptr(parent) { +#if !defined(GLIB_VERSION_2_36) g_type_init(); +#endif ldmGreeter = lightdm_greeter_new(); g_signal_connect (ldmGreeter, "show-prompt", G_CALLBACK (cb_showPrompt), this); diff --git a/liblightdm-qt/sessionsmodel.cpp b/liblightdm-qt/sessionsmodel.cpp index 3315c71b..63c06154 100644 --- a/liblightdm-qt/sessionsmodel.cpp +++ b/liblightdm-qt/sessionsmodel.cpp @@ -46,7 +46,9 @@ private: SessionsModelPrivate::SessionsModelPrivate(SessionsModel *parent) : q_ptr(parent) { +#if !defined(GLIB_VERSION_2_36) g_type_init(); +#endif } void SessionsModelPrivate::loadSessions(SessionsModel::SessionType sessionType) diff --git a/liblightdm-qt/usersmodel.cpp b/liblightdm-qt/usersmodel.cpp index f1624938..94557240 100644 --- a/liblightdm-qt/usersmodel.cpp +++ b/liblightdm-qt/usersmodel.cpp @@ -65,7 +65,9 @@ public: UsersModelPrivate::UsersModelPrivate(UsersModel* parent) : q_ptr(parent) { +#if !defined(GLIB_VERSION_2_36) g_type_init(); +#endif } UsersModelPrivate::~UsersModelPrivate() |