[glib] fix argument order for g_date_time_difference()



commit 02451227ec8bafae48af4c519c9e0441176d1978
Author: Ryan Lortie <desrt desrt ca>
Date:   Wed Sep 22 06:28:49 2010 -0400

    fix argument order for g_date_time_difference()
    
    The names of the arguments in the header file was reversed.
    
    Closes bug #630000

 glib/gdatetime.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/glib/gdatetime.h b/glib/gdatetime.h
index 276a170..f668fde 100644
--- a/glib/gdatetime.h
+++ b/glib/gdatetime.h
@@ -169,8 +169,8 @@ GDateTime *             g_date_time_add_full                            (GDateTi
 
 gint                    g_date_time_compare                             (gconstpointer   dt1,
                                                                          gconstpointer   dt2);
-GTimeSpan               g_date_time_difference                          (GDateTime      *begin,
-                                                                         GDateTime      *end);
+GTimeSpan               g_date_time_difference                          (GDateTime      *end,
+                                                                         GDateTime      *begin);
 guint                   g_date_time_hash                                (gconstpointer   datetime);
 gboolean                g_date_time_equal                               (gconstpointer   dt1,
                                                                          gconstpointer   dt2);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]