~teejee2008/apt-toolkit/trunk

« back to all changes in this revision

Viewing changes to src/Utility/Utility.vala

  • Committer: Tony George
  • Date: 2017-04-03 15:25:38 UTC
  • Revision ID: tony.george.kol@gmail.com-20170403152538-zxccgy7wiqpp57tj
remember app settings size limit in one-click settings dialog

Show diffs side-by-side

added added

removed removed

Lines of Context:
741
741
                }
742
742
        }
743
743
 
 
744
        public int64 json_get_int64(Json.Object jobj, string member, int64 def_value){
 
745
                if (jobj.has_member(member)){
 
746
                        return int64.parse(jobj.get_string_member(member));
 
747
                }
 
748
                else{
 
749
                        log_error ("Member not found in JSON object: " + member, false, true);
 
750
                        return def_value;
 
751
                }
 
752
        }
 
753
 
744
754
}
745
755
 
746
756
namespace TeeJee.ProcessManagement{