summarylogtreecommitdiffstats
path: root/0001-Remove-call-to-g_type_init.patch
blob: 17218f983aab79507a8f789472e54da1bb294992 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
From 059c735433eeef93c59e8e5923218349fa6da9ee Mon Sep 17 00:00:00 2001
From: "Frederik \"Freso\" S. Olesen" <freso.dk@gmail.com>
Date: Sat, 15 Feb 2014 12:23:28 +0100
Subject: [PATCH] Remove call to g_type_init.
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

This is exactly the same as Olivier Mehani's patch for mbm-gpsd, that had this
commit message:
"""
From [0]:

“g_type_init has been deprecated since version 2.36 and should not be
used in newly-written code. the type system is now initialised
automatically”

[0] https://developer.gnome.org/gobject/unstable/gobject-Type-Information.html#g-type-init
"""

Signed-off-by: Frederik "Freso" S. Olesen <freso.dk@gmail.com>
---
 src/gps_control.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/gps_control.c b/src/gps_control.c
index bfd1202..cfde6ab 100644
--- a/src/gps_control.c
+++ b/src/gps_control.c
@@ -311,8 +311,6 @@ void dbus_connect (DBUS_Connection * conn)
 {
 	GError *error;
 
-	g_type_init ();
-
 	error = NULL;
 	conn->connection = dbus_g_bus_get (DBUS_BUS_SYSTEM, &error);
 	if (conn->connection == NULL) {
-- 
1.8.5.5