]> sjero.net Git - linphone/commitdiff
fix for old glib version
authorSimon Morlat <simon.morlat@linphone.org>
Thu, 28 Jun 2012 07:59:53 +0000 (09:59 +0200)
committerSimon Morlat <simon.morlat@linphone.org>
Thu, 28 Jun 2012 07:59:53 +0000 (09:59 +0200)
gtk/calllogs.c

index 63c00b9a5f9743590155971c41d1c0ee1f1dea8c..9494dbfa2661a681278372c2431511805ef25b65 100644 (file)
@@ -60,12 +60,13 @@ void linphone_gtk_call_log_update(GtkWidget *w){
                const char *status=NULL;
                gchar *start_date=NULL;
                
+#if GLIB_CHECK_VERSION(2,26,0)
                if (cl->start_date_time){
                        GDateTime *dt=g_date_time_new_from_unix_local(cl->start_date_time);
                        start_date=g_date_time_format(dt,"%c");
                        g_date_time_unref(dt);
                }
-                       
+#endif
                
                display=linphone_address_get_display_name (la);
                if (display==NULL){