[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [xsettings-kde] /: Stop using deprecated GLib API
From: Olav Vitters <olav () vitters ! nl>
Date: 2016-01-26 23:36:16
Message-ID: E1aOD9k-00022K-NJ () scm ! kde ! org
[Download RAW message or body]
Git commit 8b41b8089a624c3a2dc1d18969064d0ec23f09d2 by Olav Vitters.
Committed on 26/01/2016 at 23:36.
Pushed by vitters into branch 'master'.
Stop using deprecated GLib API
M +2 -4 xsettings-kde.c
http://commits.kde.org/xsettings-kde/8b41b8089a624c3a2dc1d18969064d0ec23f09d2
diff --git a/xsettings-kde.c b/xsettings-kde.c
index df37d4f..c3c08e6 100644
--- a/xsettings-kde.c
+++ b/xsettings-kde.c
@@ -607,9 +607,6 @@ int main (int argc, char **argv) {
struct xevent_data xev;
GMainLoop *loop;
- g_thread_init(NULL);
- g_type_init();
-
xev.display = XOpenDisplay (NULL);
if (xev.display == NULL) {
fprintf(stderr, "unable to open display\n");
@@ -655,7 +652,8 @@ int main (int argc, char **argv) {
readConfig();
- g_thread_create ((GThreadFunc)xevent_handle, &xev, FALSE, NULL);
+ g_thread_new ("handle-xevent", (GThreadFunc) xevent_handle, &xev);
+
loop = g_main_loop_new (NULL, TRUE);
g_main_loop_run (loop);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic