mousetweaks r256 - in trunk: . src
- From: gerdk svn gnome org
- To: svn-commits-list gnome org
- Subject: mousetweaks r256 - in trunk: . src
- Date: Wed, 27 Aug 2008 21:08:16 +0000 (UTC)
Author: gerdk
Date: Wed Aug 27 21:08:16 2008
New Revision: 256
URL: http://svn.gnome.org/viewvc/mousetweaks?rev=256&view=rev
Log:
2008-08-27 Gerd Kohlberger <gerdk svn gnome org>
* src/mt-timer.c: Minor cleanup.
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 Wed Aug 27 21:08:16 2008
@@ -79,7 +79,7 @@
{
MtTimerPrivate *priv = MT_TIMER_GET_PRIVATE (timer);
- priv->timer = NULL;
+ priv->timer = g_timer_new ();
priv->tid = 0;
priv->elapsed = 0.0;
priv->target = 1.2;
@@ -134,15 +134,7 @@
MtTimer *
mt_timer_new (void)
{
- MtTimer *timer;
- MtTimerPrivate *priv;
-
- timer = g_object_new (MT_TYPE_TIMER, NULL);
- priv = MT_TIMER_GET_PRIVATE (timer);
-
- priv->timer = g_timer_new ();
-
- return timer;
+ return g_object_new (MT_TYPE_TIMER, NULL);
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]