diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2012-04-18 09:18:29 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2012-04-18 09:18:29 +0000 |
commit | f97eb70650828aa8c7943294fbe874c176da31b7 (patch) | |
tree | d2ad142ddae0cd1cbfa83b582d2267f05684ab65 | |
parent | 89de8f9e8598d8c68009e1c34ecf096d3028c6a5 (diff) |
removed compiler warnings caused by usage of gboolean as gpointer.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@3050 ee746299-78ed-0310-b773-934348b2243d
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | src/update_check.c | 8 |
2 files changed, 9 insertions, 4 deletions
@@ -1,5 +1,10 @@ 2012-04-18 + * src/update_check.c: removed compiler warnings caused by usage of + gboolean as gpointer (thanks to Ricard Mones). + +2012-04-18 + * addr_compl.c: fixed Bug #52: Address autocomplete: Not possible to select drop-down list element with arrow keys (Linux) Possibly occured with GTK+ >= 2.24. diff --git a/src/update_check.c b/src/update_check.c index b1797c6c..c499e493 100644 --- a/src/update_check.c +++ b/src/update_check.c @@ -310,7 +310,7 @@ static void update_check_cb(GPid pid, gint status, gpointer data) gboolean got_version = FALSE; gboolean rel_result = FALSE; gboolean dev_result = FALSE; - gboolean show_dialog_always = (gboolean)data; + gboolean show_dialog_always = GPOINTER_TO_INT(data); gchar buf[BUFFSIZE]; ssize_t size; gchar *disp_rel_ver = NULL; @@ -589,7 +589,7 @@ static void update_check_plugin_cb(GPid pid, gint status, gpointer data) gchar *key, *val, *p; gchar *cur_ver; gint i; - gboolean show_dialog_always = (gboolean)data; + gboolean show_dialog_always = GPOINTER_TO_INT(data); gchar buf[BUFFSIZE]; ssize_t size; GHashTable *plugin_version_table = NULL; @@ -712,7 +712,7 @@ void update_check_plugin(gboolean show_dialog_always) #endif update_check_set_check_plugin_url(buf); } - spawn_curl(check_plugin_url, update_check_plugin_cb, (gpointer)show_dialog_always); + spawn_curl(check_plugin_url, update_check_plugin_cb, GINT_TO_POINTER(show_dialog_always)); } #endif /* USE_UPDATE_CHECK_PLUGIN */ @@ -731,7 +731,7 @@ void update_check(gboolean show_dialog_always) #endif update_check_set_check_url(buf); } - spawn_curl(check_url, update_check_cb, (gpointer)show_dialog_always); + spawn_curl(check_url, update_check_cb, GINT_TO_POINTER(show_dialog_always)); } void update_check_set_check_url(const gchar *url) |