mousetweaks r201 - in trunk: . src
- From: gerdk svn gnome org
- To: svn-commits-list gnome org
- Subject: mousetweaks r201 - in trunk: . src
- Date: Sun, 6 Jul 2008 11:09:38 +0000 (UTC)
Author: gerdk
Date: Sun Jul 6 11:09:38 2008
New Revision: 201
URL: http://svn.gnome.org/viewvc/mousetweaks?rev=201&view=rev
Log:
2008-07-06 Gerd Kohlberger <gerdk svn gnome org>
* src/mt-timer.c: Remove unnecessary g_timer_stop() calls.
Modified:
trunk/ChangeLog
trunk/src/mt-timer.c
Modified: trunk/src/mt-timer.c
==============================================================================
--- trunk/src/mt-timer.c (original)
+++ trunk/src/mt-timer.c Sun Jul 6 11:09:38 2008
@@ -91,10 +91,7 @@
MtTimer *timer = MT_TIMER (object);
MtTimerPrivate *priv = MT_TIMER_GET_PRIVATE (timer);
- if (mt_timer_is_running (timer)) {
- g_timer_stop (priv->timer);
- priv->elapsed = 0.0;
- }
+ priv->elapsed = 0.0;
if (priv->tid != 0) {
g_source_remove (priv->tid);
@@ -125,9 +122,8 @@
if (priv->elapsed >= priv->target) {
priv->tid = 0;
- g_timer_stop (priv->timer);
- g_signal_emit (timer, signals[FINISHED], 0);
priv->elapsed = 0.0;
+ g_signal_emit (timer, signals[FINISHED], 0);
return FALSE;
}
@@ -145,7 +141,6 @@
priv = MT_TIMER_GET_PRIVATE (timer);
priv->timer = g_timer_new ();
- g_timer_stop (priv->timer);
return timer;
}
@@ -170,9 +165,7 @@
MtTimerPrivate *priv;
g_return_if_fail (MT_IS_TIMER (timer));
-
priv = MT_TIMER_GET_PRIVATE (timer);
- g_timer_stop (priv->timer);
if (priv->tid != 0) {
g_source_remove (priv->tid);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]