aboutsummaryrefslogtreecommitdiff
path: root/test/indicator-messages-service-activate.c
diff options
context:
space:
mode:
authorSergio Schvezov <sergio.schvezov@canonical.com>2013-03-22 22:19:26 +0000
committerTarmac <Unknown>2013-03-22 22:19:26 +0000
commite1712e56d9464abddf7350156aa5e024134c0953 (patch)
treeffd4a7370a950bcc9b3702c5ff965fb43d707fd0 /test/indicator-messages-service-activate.c
parent8fd0c5cf4246c6788024212d794a3f3f8741d2ed (diff)
parent55dc5c4f511325e1b8bb5cbed0c9d6be8812ca30 (diff)
downloadayatana-indicator-messages-e1712e56d9464abddf7350156aa5e024134c0953.tar.gz
ayatana-indicator-messages-e1712e56d9464abddf7350156aa5e024134c0953.tar.bz2
ayatana-indicator-messages-e1712e56d9464abddf7350156aa5e024134c0953.zip
Adding guards for g_type_init and reversioning.
Approved by PS Jenkins bot, Gustavo Pichorim Boiko.
Diffstat (limited to 'test/indicator-messages-service-activate.c')
-rw-r--r--test/indicator-messages-service-activate.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/indicator-messages-service-activate.c b/test/indicator-messages-service-activate.c
index 98c6522..f5a26b0 100644
--- a/test/indicator-messages-service-activate.c
+++ b/test/indicator-messages-service-activate.c
@@ -28,7 +28,9 @@ with this program. If not, see <http://www.gnu.org/licenses/>.
int
main (int argc, char ** argv)
{
+#if G_ENCODE_VERSION(GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION) <= GLIB_VERSION_2_34
g_type_init();
+#endif
guint returnval = 0;
GError * error = NULL;