diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-04-30 13:54:01 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-04-30 13:54:01 +0100 |
commit | bb36072c92687a954a38aeca7fb9945f8e7cca13 (patch) | |
tree | f6a9c49c995f57b6f815a7e2a6864f7cc20c1f56 /vcl/unx | |
parent | 888d2d8d5ef599bafedd4f9ffdd2dc9d48b6a2cb (diff) |
g_source_get_current_time has been deprecated since version 2.28
g_source_get_current_time has been deprecated since version 2.28 and should not
be used in newly-written code. ... This function ignores source and is
otherwise the same as g_get_current_time()
not using g_source_get_time seeing as our baseline isn't there yet
Change-Id: I9f389cbb8d23353c0a12eacb215d61256b28f643
Diffstat (limited to 'vcl/unx')
-rw-r--r-- | vcl/unx/gtk/app/gtkdata.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/unx/gtk/app/gtkdata.cxx b/vcl/unx/gtk/app/gtkdata.cxx index 776313b04b48..518917490ce3 100644 --- a/vcl/unx/gtk/app/gtkdata.cxx +++ b/vcl/unx/gtk/app/gtkdata.cxx @@ -770,7 +770,7 @@ extern "C" { static void sal_gtk_timeout_defer( SalGtkTimeoutSource *pTSource ) { - g_source_get_current_time( (GSource *) pTSource, &pTSource->aFireTime ); + g_get_current_time( &pTSource->aFireTime ); g_time_val_add( &pTSource->aFireTime, pTSource->pInstance->m_nTimeoutMS * 1000 ); } @@ -806,7 +806,7 @@ extern "C" { SalGtkTimeoutSource *pTSource = (SalGtkTimeoutSource *)pSource; GTimeVal aTimeNow; - g_source_get_current_time( pSource, &aTimeNow ); + g_get_current_time( &aTimeNow ); return sal_gtk_timeout_expired( pTSource, nTimeoutMS, &aTimeNow ); } @@ -816,7 +816,7 @@ extern "C" { SalGtkTimeoutSource *pTSource = (SalGtkTimeoutSource *)pSource; GTimeVal aTimeNow; - g_source_get_current_time( pSource, &aTimeNow ); + g_get_current_time( &aTimeNow ); return ( pTSource->aFireTime.tv_sec < aTimeNow.tv_sec || ( pTSource->aFireTime.tv_sec == aTimeNow.tv_sec && |