[Xfce4-commits] [apps/xfce4-dict] 11/43: Replace g_thread_create by g_thread_new

noreply at xfce.org noreply at xfce.org
Tue Nov 1 00:31:24 CET 2016


This is an automated email from the git hooks/post-receive script.

andre pushed a commit to branch master
in repository apps/xfce4-dict.

commit 62dcaad0068795cb6e8a562bcfb5546af225404f
Author: Andre Miranda <andre42m at gmail.com>
Date:   Wed Jul 20 22:50:50 2016 -0300

    Replace g_thread_create by g_thread_new
---
 lib/dictd.c                      | 2 +-
 panel-plugin/xfce4-dict-plugin.c | 2 --
 src/xfce4-dict.c                 | 4 +---
 3 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/lib/dictd.c b/lib/dictd.c
index 8c75cbf..bcaa8b3 100644
--- a/lib/dictd.c
+++ b/lib/dictd.c
@@ -679,7 +679,7 @@ void dict_dictd_start_query(DictData *dd, const gchar *word)
 		dictd_init();
 
 		/* start the thread to query the server */
-		g_thread_create((GThreadFunc) ask_server, dd, FALSE, NULL);
+		g_thread_new(NULL, (GThreadFunc) ask_server, dd);
 	}
 }
 
diff --git a/panel-plugin/xfce4-dict-plugin.c b/panel-plugin/xfce4-dict-plugin.c
index b137292..6df383b 100644
--- a/panel-plugin/xfce4-dict-plugin.c
+++ b/panel-plugin/xfce4-dict-plugin.c
@@ -368,8 +368,6 @@ static void dict_plugin_construct(XfcePanelPlugin *plugin)
 
 	xfce_textdomain(GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR, "UTF-8");
 
-	g_thread_init(NULL);
-
 	dpd->dd = dict_create_dictdata();
 	dpd->dd->is_plugin = TRUE;
 	dpd->plugin = plugin;
diff --git a/src/xfce4-dict.c b/src/xfce4-dict.c
index 0121ddf..337abc8 100644
--- a/src/xfce4-dict.c
+++ b/src/xfce4-dict.c
@@ -83,7 +83,7 @@ static void pref_dialog_activated(GtkMenuItem *menuitem, DictData *dd)
 }
 
 
-static gchar get_flags()
+static gchar get_flags(void)
 {
 	gchar flags = 0;
 
@@ -173,8 +173,6 @@ gint main(gint argc, gchar *argv[])
 	dd->is_plugin = FALSE;
 	dd->verbose_mode = verbose_mode;
 
-	g_thread_init(NULL);
-
 	dict_read_rc_file(dd);
 
 	/* set search mode from command line flags, if any */

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list