From 844186b77db5913983a871bef9a0c984e0e8c995 Mon Sep 17 00:00:00 2001 From: Giuliano Schneider Date: Tue, 30 Apr 2013 13:45:34 +0200 Subject: [PATCH] =?UTF-8?q?fixed=20"warning:=20=E2=80=98g=5Ftype=5Finit?= =?UTF-8?q?=E2=80=99=20is=20deprecated"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dbus.c | 4 +++- dunstify.c | 5 +++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/dbus.c b/dbus.c index 39f92dd..729cab1 100644 --- a/dbus.c +++ b/dbus.c @@ -389,7 +389,9 @@ int initdbus(void) { guint owner_id; - g_type_init(); + #if !GLIB_CHECK_VERSION(2,35,0) + g_type_init(); + #endif introspection_data = g_dbus_node_info_new_for_xml(introspection_xml, NULL); diff --git a/dunstify.c b/dunstify.c index 9209c87..7958cd6 100644 --- a/dunstify.c +++ b/dunstify.c @@ -249,8 +249,9 @@ void add_hint(NotifyNotification *n, char *str) int main(int argc, char *argv[]) { - - g_type_init(); + #if !GLIB_CHECK_VERSION(2,35,0) + g_type_init(); + #endif parse_commandline(argc, argv); if (!notify_init(appname)) {