[Xfce4-commits] [panel-plugins/xfce4-wavelan-plugin] 02/04: Remove check for glib 2.14, was released 7 years ago..
noreply at xfce.org
noreply at xfce.org
Sun Apr 20 10:45:55 CEST 2014
This is an automated email from the git hooks/post-receive script.
landry pushed a commit to branch master
in repository panel-plugins/xfce4-wavelan-plugin.
commit 7457aca68d9e703aae841c21d3a9328d572daab8
Author: Landry Breuil <landry at xfce.org>
Date: Sun Apr 20 10:43:47 2014 +0200
Remove check for glib 2.14, was released 7 years ago..
---
panel-plugin/wavelan.c | 12 +-----------
1 file changed, 1 insertion(+), 11 deletions(-)
diff --git a/panel-plugin/wavelan.c b/panel-plugin/wavelan.c
index a8e1755..409e263 100644
--- a/panel-plugin/wavelan.c
+++ b/panel-plugin/wavelan.c
@@ -186,16 +186,6 @@ wavelan_timer(gpointer data)
return(TRUE);
}
-inline guint
-timeout_add_seconds(guint interval, GSourceFunc function, gpointer data)
-{
-#if GLIB_CHECK_VERSION( 2,14,0 )
- return g_timeout_add_seconds(interval, function, data);
-#else
- return g_timeout_add(interval*1000, function, data);
-#endif
-}
-
static void
wavelan_reset(t_wavelan *wavelan)
{
@@ -216,7 +206,7 @@ wavelan_reset(t_wavelan *wavelan)
if ((wavelan->device = wi_open(wavelan->interface)) != NULL) {
/* register the update timer */
TRACE ("Opened device");
- wavelan->timer_id = timeout_add_seconds(1, wavelan_timer, wavelan);
+ wavelan->timer_id = g_timeout_add_seconds(1, wavelan_timer, wavelan);
}
}
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list