fixed "warning: ‘g_type_init’ is deprecated"
This commit is contained in:
parent
2d59a77e0c
commit
844186b77d
2
dbus.c
2
dbus.c
@ -389,7 +389,9 @@ int initdbus(void)
|
|||||||
{
|
{
|
||||||
guint owner_id;
|
guint owner_id;
|
||||||
|
|
||||||
|
#if !GLIB_CHECK_VERSION(2,35,0)
|
||||||
g_type_init();
|
g_type_init();
|
||||||
|
#endif
|
||||||
|
|
||||||
introspection_data = g_dbus_node_info_new_for_xml(introspection_xml,
|
introspection_data = g_dbus_node_info_new_for_xml(introspection_xml,
|
||||||
NULL);
|
NULL);
|
||||||
|
@ -249,8 +249,9 @@ void add_hint(NotifyNotification *n, char *str)
|
|||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
|
#if !GLIB_CHECK_VERSION(2,35,0)
|
||||||
g_type_init();
|
g_type_init();
|
||||||
|
#endif
|
||||||
parse_commandline(argc, argv);
|
parse_commandline(argc, argv);
|
||||||
|
|
||||||
if (!notify_init(appname)) {
|
if (!notify_init(appname)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user